From 72d4eb2aeda894c6a20dd59b491b6583f30cfed2 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 8 Nov 2022 11:22:29 +0530 Subject: [PATCH] fix(gui): block only required column remove event Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Form.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 7baf76c8c2..514aa175fe 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -170,15 +170,14 @@ function onMoveCallback(event: any) { function onMove(event: any) { const { newIndex, element, oldIndex } = event.added || event.moved || event.removed - if (shouldSkipColumn(element)) { - return - } - if (event.added) { element.show = true } if (event.removed) { + if (shouldSkipColumn(element)) { + return + } element.show = false saveOrUpdate(element, oldIndex) } else {