Fix the browser tree state that is not remembered when reopening pgAdmin. #5777

pull/6276/head
Pravesh Sharma 2023-05-11 14:32:00 +05:30 committed by GitHub
parent acf5eb7a26
commit 2ec460bf8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'];