From 940fe5c2b94c1fe5871eb829abe7adf9841e03f3 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 29 Nov 2024 13:21:19 +0100 Subject: [PATCH] fix: #6943 CustomerAddressCreate --- .../components/CustomerAddressCreate.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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; }