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

Method destroy

web/pgadmin/static/js/tree/tree.js:121–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 async destroy() {
122 const model = this.tree.getModel();
123 this.rootNode.children = [];
124 if (model.root) {
125 model.root.isExpanded = false;
126 return Promise.resolve(await model.root.hardReloadChildren());
127 }
128 }
129
130 next(item) {
131 if (item) {

Callers 8

onDeleteClickFunction · 0.45
onSaveFunction · 0.45
JsonEditorFunction · 0.45
EditorFunction · 0.45
destroyPickrFunction · 0.45
destroyChartFunction · 0.45
handleResetClickFunction · 0.45
saveDataFunction · 0.45

Calls 1

getModelMethod · 0.65

Tested by

no test coverage detected