diff --git a/src/pages/Customer/components/CustomerAddressCreate.vue b/src/pages/Customer/components/CustomerAddressCreate.vue index f4a188243..6cf42b20e 100644 --- a/src/pages/Customer/components/CustomerAddressCreate.vue +++ b/src/pages/Customer/components/CustomerAddressCreate.vue @@ -18,8 +18,6 @@ const router = useRouter(); const formInitialData = reactive({ isDefaultAddress: false }); -const urlCreate = ref(''); - const agencyModes = ref([]); const incoterms = ref([]); const customsAgents = ref([]); @@ -40,13 +38,18 @@ function handleLocation(data, location) { data.countryFk = countryFk; } -function onAgentCreated(requestResponse, data) { - customsAgents.value.push(requestResponse); - data.customsAgentFk = requestResponse.id; +function onAgentCreated({ id, fiscalName }, data) { + customsAgents.value.push({ id, fiscalName }); + data.customsAgentFk = id; }