diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index c8d83b6c4..9f5ae319c 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -81,7 +81,7 @@ onMounted(async () => { }); // Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla - state.set($props.model, $props.formInitialData ?? {}); + state.set($props.model, $props.formInitialData); if ($props.autoLoad && !$props.formInitialData) { await fetch(); } diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index d2651f5d8..d5c59517d 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -111,7 +111,7 @@ function addDefaultData(data) {