mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-30 08:20:33 +00:00
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:
@@ -205,6 +205,7 @@ export interface TreeNode {
|
||||
schema?: string;
|
||||
tableName?: string;
|
||||
objectCount?: number;
|
||||
hiddenChildren?: TreeNode[];
|
||||
savedSqlId?: string;
|
||||
savedSqlFolderId?: string;
|
||||
meta?: ColumnInfo | IndexInfo | ForeignKeyInfo | TriggerInfo;
|
||||
|
||||
Reference in New Issue
Block a user