fix(sidebar): allow search to find tables hidden behind object browser

When a database has more than 15 tables, only the first 15 are shown
in the tree with an "object browser" entry for the rest. The sidebar
search could not find tables beyond the first 15.

Store hidden table nodes on the object-browser TreeNode and search
through them in filterTree when a query is active.
This commit is contained in:
t8y2
2026-05-11 13:21:19 +08:00
parent 7197f83eda
commit 39f33e15d4
3 changed files with 39 additions and 12 deletions
+1
View File
@@ -205,6 +205,7 @@ export interface TreeNode {
schema?: string;
tableName?: string;
objectCount?: number;
hiddenChildren?: TreeNode[];
savedSqlId?: string;
savedSqlFolderId?: string;
meta?: ColumnInfo | IndexInfo | ForeignKeyInfo | TriggerInfo;