From a9942d431fdc64b60db7976cc82bc71fc4cb826a Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 2 Aug 2022 21:31:51 +0530 Subject: [PATCH] fix/gui-v2-json-bug-fix --- packages/nc-gui-v2/components/cell/Json.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/cell/Json.vue b/packages/nc-gui-v2/components/cell/Json.vue index d9f48dba69..776c398777 100644 --- a/packages/nc-gui-v2/components/cell/Json.vue +++ b/packages/nc-gui-v2/components/cell/Json.vue @@ -40,10 +40,16 @@ const onSave = () => { } onMounted(() => { - console.log('mount', vModel) localValue = JSON.stringify(vModel) }) +watch( + () => vModel, + (val) => { + localValue = JSON.stringify(val) + }, +) + watch( () => localValue, (val) => {