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