diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 426d99b9a..dc3e585f6 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -119,9 +119,10 @@ onMounted(async () => { // Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla state.set(modelValue, $props.formInitialData); - if ($props.autoLoad && !$props.formInitialData && $props.url) await fetch(); - else if (arrayData.store.data) updateAndEmit('onFetch', arrayData.store.data); - + if (!$props.formInitialData) { + if ($props.autoLoad && $props.url) await fetch(); + else if (arrayData.store.data) updateAndEmit(arrayData.store.data, 'onFetch'); + } if ($props.observeFormChanges) { watch( () => formData.value, diff --git a/src/pages/Travel/Card/TravelBasicData.vue b/src/pages/Travel/Card/TravelBasicData.vue index f4e97c239..1eb9bbc0f 100644 --- a/src/pages/Travel/Card/TravelBasicData.vue +++ b/src/pages/Travel/Card/TravelBasicData.vue @@ -24,7 +24,7 @@ const agenciesOptions = ref([]);