diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index f87696d0a..0e74534f6 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -70,6 +70,7 @@ defineExpose({ const componentIsRendered = ref(false); onMounted(async () => { + originalData.value = $props.formInitialData; nextTick(() => { componentIsRendered.value = true; }); @@ -98,7 +99,7 @@ const isLoading = ref(false); // Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas const isResetting = ref(false); const hasChanges = ref(!$props.observeFormChanges); -const originalData = ref({ ...$props.formInitialData }); +const originalData = ref({}); const formData = computed(() => state.get($props.model)); const formUrl = computed(() => $props.url);