Browse Source

fix(gui): reset add column preload data on column creation or cancel

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
319adf5506
  1. 1
      packages/nc-gui/components/smartsheet/Grid.vue

1
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')

Loading…
Cancel
Save