From 035fdf41a1642b56412204897f7146d814e2f503 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 11 Dec 2023 14:48:31 +0530 Subject: [PATCH] fix: escape single quote properly and update default value by overriding the col object Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/column/DefaultValue.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/DefaultValue.vue b/packages/nc-gui/components/smartsheet/column/DefaultValue.vue index 5fdf44c7eb..13a777368a 100644 --- a/packages/nc-gui/components/smartsheet/column/DefaultValue.vue +++ b/packages/nc-gui/components/smartsheet/column/DefaultValue.vue @@ -27,8 +27,8 @@ const cdfValue = ref(null) const editEnabled = ref(false) const updateCdfValue = (cdf: string | null) => { - vModel.value.cdf = cdf - cdfValue.value = vModel.value.cdf + vModel.value = { ...vModel.value, cdf } + cdfValue.value = cdf } onMounted(() => {