fix(sidebar): collapse the Queries node by default
This commit is contained in:
1 parent
6848e78855
commit
2f4a72c4e9
2 files changed
+8
-1
No files matched your search
@@ -71,7 +71,9 @@ export function buildDatabaseSavedSqlRootNode(databaseNode: Pick<TreeNode, "id"
|
||||
connectionId: databaseNode.connectionId,
|
||||
catalog: databaseNode.catalog,
|
||||
database: databaseNode.database,
|
||||
isExpanded: existingRoot?.isExpanded ?? true,
|
||||
// Default collapsed: opening a connection should not expand the Queries
|
||||
// node until the user asks for it; an existing node's state is preserved.
|
||||
isExpanded: existingRoot?.isExpanded ?? false,
|
||||
children: savedSqlFilesForDatabase(source, {
|
||||
connectionId: databaseNode.connectionId,
|
||||
catalog: databaseNode.catalog,
|
||||
|
||||
Reference in new issue
Block a user