From cdccabcb3243b29f7d472f14a44ee61606de5ef2 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 18 Feb 2025 12:44:56 +0100 Subject: [PATCH] fix: refs #8627 formModel default null --- src/components/FormModel.vue | 2 +- src/pages/Customer/components/CustomerAddressEdit.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index a92ba29ee..633f1254d 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -106,7 +106,7 @@ const isLoading = ref(false); const isResetting = ref(false); const hasChanges = ref(!$props.observeFormChanges); const originalData = computed(() => state.get(modelValue)); -const formData = ref({}); +const formData = ref(); const defaultButtons = computed(() => ({ save: { dataCy: 'saveDefaultBtn', diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue index af1b9c160..f852c160a 100644 --- a/src/pages/Customer/components/CustomerAddressEdit.vue +++ b/src/pages/Customer/components/CustomerAddressEdit.vue @@ -233,7 +233,7 @@ function handleLocation(data, location) { postcode: data.postalCode, city: data.city, province: data.province, - country: data.province.country, + country: data.province?.country, }" @update:model-value="(location) => handleLocation(data, location)" >