MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / parent

Method parent

web/regression/javascript/tree/tree_fake.js:83–90  ·  view source on GitHub ↗
(treeNode)

Source from the content-addressed store, hash-verified

81 }
82
83 parent(treeNode) {
84 if (this.hasParent(treeNode)) {
85 let path = this.translateTreeNodeIdFromReactTree(treeNode);
86 return [{id: this.findNode('/browser/' + path).parent().id}];
87 }
88
89 return null;
90 }
91
92 translateTreeNodeIdFromReactTree(treeNode) {
93 if (treeNode === undefined || treeNode[0] === undefined) {

Callers

nothing calls this directly

Calls 4

hasParentMethod · 0.95
parentMethod · 0.65
findNodeMethod · 0.45

Tested by

no test coverage detected