fix: refs #8627 formModel default null
gitea/salix-front/pipeline/pr-test There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-18 12:44:56 +01:00
parent 11848a1cd7
commit cdccabcb32
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ const isLoading = ref(false);
const isResetting = ref(false); const isResetting = ref(false);
const hasChanges = ref(!$props.observeFormChanges); const hasChanges = ref(!$props.observeFormChanges);
const originalData = computed(() => state.get(modelValue)); const originalData = computed(() => state.get(modelValue));
const formData = ref({}); const formData = ref();
const defaultButtons = computed(() => ({ const defaultButtons = computed(() => ({
save: { save: {
dataCy: 'saveDefaultBtn', dataCy: 'saveDefaultBtn',

View File

@ -233,7 +233,7 @@ function handleLocation(data, location) {
postcode: data.postalCode, postcode: data.postalCode,
city: data.city, city: data.city,
province: data.province, province: data.province,
country: data.province.country, country: data.province?.country,
}" }"
@update:model-value="(location) => handleLocation(data, location)" @update:model-value="(location) => handleLocation(data, location)"
></VnLocation> ></VnLocation>