From fc8c48dd2a00e45fb44f3703dd11b123060d2089 Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 11 Aug 2022 15:32:05 +0300 Subject: [PATCH] fix(gui-v2): call generateNewColumnMeta only once Signed-off-by: mertmit --- packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue index 64254d2d74..6c6db25ee1 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue @@ -69,7 +69,7 @@ async function onSubmit() { // create column meta if it's a new column watchEffect(() => { - if (!isEdit.value) { + if (!isEdit.value && formState.value.altered !== 1) { generateNewColumnMeta() } })