Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): set forceShowBaseList to false on navigate to table

Ramesh Mane0e147fbab4ee
diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
index 5088a51f82..f32ae968b7 100644
--- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
+++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
@@ -199,6 +199,10 @@ function openTableCreateDialog(sourceIndex?: number | undefined, showSourceSelec
onCloseCallback: () => {
base.value.isExpanded = true
+ if (forceShowBaseList.value) {
+ forceShowBaseList.value = false
+ }
+
if (!activeKey.value || !activeKey.value.includes(`collapse-${sourceId}`)) {
activeKey.value.push(`collapse-${sourceId}`)
}
diff --git a/packages/nc-gui/store/bases.ts b/packages/nc-gui/store/bases.ts
index 13cf2c2bd3..bb91bb6845 100644
--- a/packages/nc-gui/store/bases.ts
+++ b/packages/nc-gui/store/bases.ts
@@ -402,6 +402,8 @@ export const useBases = defineStore('basesStore', () => {
baseHomeSearchQuery.value = ''
if (newBaseId) {
+ if (!forceShowBaseList.value) return
+
/**
* If oldBaseId is present that means we are navigation from one base to another base
* In that case we have to set forceShowBaseList to false