Browse Source

fix(nc-gui): small changes

pull/7820/head
Ramesh Mane 9 months ago
parent
commit
a2afaa8dc2
  1. 3
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue

3
packages/nc-gui/components/dashboard/TreeView/TableNode.vue

@ -142,10 +142,11 @@ const isTableOpened = computed(() => {
const baseTimeout = ref()
watch(openedTableId, () => {
if (table.value.id !== openedTableId.value && isExpanded.value) {
console.log('view ', openedTableId.value)
if (baseTimeout.value) {
clearTimeout(baseTimeout.value)
}
if (table.value.id !== openedTableId.value && isExpanded.value) {
baseTimeout.value = setTimeout(() => {
if (isExpanded.value) {
isExpanded.value = false

Loading…
Cancel
Save