mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-09 12:38:35 -05:00
Fix an issue where pgAdmin4 unable to retrieve table node if the trigger is already disabled and the user clicks on Enable All. Fixes #4953.
This commit is contained in:
committed by
Akshay Joshi
parent
d95e8db4ee
commit
ae2aadeede
@@ -211,7 +211,7 @@ _.extend(pgBrowser.browserTreeState, {
|
||||
node = data && pgBrowser.Nodes[data._type],
|
||||
treeHierarchy = node && node.getTreeNodeHierarchy(item);
|
||||
|
||||
if (!pgBrowser.tree.hasParent(item) || !(self.parent in treeHierarchy))
|
||||
if (treeHierarchy === null || !pgBrowser.tree.hasParent(item) || !(self.parent in treeHierarchy))
|
||||
return;
|
||||
|
||||
let topParent = treeHierarchy && treeHierarchy[self.parent]['_id'],
|
||||
@@ -269,7 +269,7 @@ _.extend(pgBrowser.browserTreeState, {
|
||||
treeHierarchy = node && node.getTreeNodeHierarchy(item);
|
||||
|
||||
|
||||
if (!pgBrowser.tree.hasParent(item) || !(self.parent in treeHierarchy))
|
||||
if (treeHierarchy === null || !pgBrowser.tree.hasParent(item) || !(self.parent in treeHierarchy))
|
||||
return;
|
||||
|
||||
// If the server node is open then only we should populate the tree
|
||||
|
||||
Reference in New Issue
Block a user