From 26a65533d50df4bf8020c4f2c26cdbddfd3dc0f8 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 4 Sep 2024 17:33:59 +0200 Subject: [PATCH] Do not reference ref in ref --- src/components/TheEntryForm.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/TheEntryForm.vue b/src/components/TheEntryForm.vue index aed5cdd..94a9394 100644 --- a/src/components/TheEntryForm.vue +++ b/src/components/TheEntryForm.vue @@ -764,9 +764,7 @@ watch(schlagInfo, (value) => { entry.value.flaechennutzungsart = tempData.value.basic.fnar_code; entry.value.flaeche = tempData.value.basic.sl_flaeche_brutto_ha; - entry.value.schlaginfo.basic = schlagInfo.value; - - entry.value.extent = tempData.value.basic.extent; + entry.value.schlaginfo.basic = JSON.parse(JSON.stringify(schlagInfo.value)); entry.value.jahr = new Date().getFullYear();