From 37160158ce054357c1a51dc05242274ddacdf116 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 1 Mar 2024 09:33:59 +0100 Subject: [PATCH] refs #5509 fix(FormModel) $props.formInitialData --- src/components/FormModel.vue | 2 +- src/components/common/VnDms.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {