mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix the browser tree state that is not remembered when reopening pgAdmin. #5777
This commit is contained in:
@@ -127,7 +127,7 @@ _.extend(pgBrowser.browserTreeState, {
|
||||
tmpIndex = -1;
|
||||
|
||||
// If no parent or the server not in tree hierarchy then return
|
||||
if (!pgBrowser.tree.hasParent(item) || !(this.parent in treeHierarchy))
|
||||
if (!pgBrowser.tree.hasParent(item) || !(this.parent in treeHierarchy) || (data._type === 'server' && !data.connected))
|
||||
return;
|
||||
|
||||
topParent = treeHierarchy[this.parent]['_id'];
|
||||
|
||||
Reference in New Issue
Block a user