Browse Source

fix(nc-gui): auto collapse all base empty table

pull/7820/head
Ramesh Mane 10 months ago
parent
commit
edf6ee9040
  1. 2
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue

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

@ -146,7 +146,7 @@ watch(openedTableId, () => {
clearTimeout(tableTimeout.value)
}
if (base.value.id === activeView.value?.base_id && table.value.id !== openedTableId.value && isExpanded.value) {
if (table.value.id !== openedTableId.value && isExpanded.value) {
const views = viewsByTable.value.get(table.value.id!)?.filter((v) => !v.is_default) ?? []
if (views.length) return

Loading…
Cancel
Save