From 319adf550678cf2a43035e7a7ce3cd2119d6de72 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 13 Jun 2023 13:24:51 +0530 Subject: [PATCH] fix(gui): reset add column preload data on column creation or cancel Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Grid.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index 3673c818a3..9491506a06 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -847,6 +847,7 @@ eventBus.on(async (event, payload) => { const closeAddColumnDropdown = (scrollToLastCol = false) => { columnOrder.value = null addColumnDropdown.value = false + preloadColumn.value = {} if (scrollToLastCol) { setTimeout(() => { const lastAddNewRowHeader = tableHeadEl.value?.querySelector('th:last-child')