From a2afaa8dc2b80d4c4d9fe856f83b0532bef78d7f Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 9 Mar 2024 11:40:00 +0000 Subject: [PATCH] fix(nc-gui): small changes --- .../nc-gui/components/dashboard/TreeView/TableNode.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue index 8242f98395..f34c0bdcbb 100644 --- a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue @@ -142,10 +142,11 @@ const isTableOpened = computed(() => { const baseTimeout = ref() watch(openedTableId, () => { + console.log('view ', openedTableId.value) + if (baseTimeout.value) { + clearTimeout(baseTimeout.value) + } if (table.value.id !== openedTableId.value && isExpanded.value) { - if (baseTimeout.value) { - clearTimeout(baseTimeout.value) - } baseTimeout.value = setTimeout(() => { if (isExpanded.value) { isExpanded.value = false