From 097d966d86e3dc2368ecd1925c50ef2e6df625de Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 11 Oct 2023 00:44:57 +0000 Subject: [PATCH] fix: load grid view columns --- packages/nc-gui/composables/useGridViewColumn.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useGridViewColumn.ts b/packages/nc-gui/composables/useGridViewColumn.ts index f0622163f3..d58e9dd625 100644 --- a/packages/nc-gui/composables/useGridViewColumn.ts +++ b/packages/nc-gui/composables/useGridViewColumn.ts @@ -38,9 +38,11 @@ const [useProvideGridViewColumn, useGridViewColumn] = useInjectionState( watch( [() => columns.value?.length, () => view.value?.id], async (n) => { - if (n[1]) await loadGridViewColumns() + if (n[0] && n[1]) await loadGridViewColumns() + }, + { + immediate: true, }, - { immediate: true }, ) const updateGridViewColumn = async (id: string, props: Partial, undo = false) => {