diff --git a/api/js/etemplate/et2_widget_tree.ts b/api/js/etemplate/et2_widget_tree.ts index ed971380fa..90a6f1f7fd 100644 --- a/api/js/etemplate/et2_widget_tree.ts +++ b/api/js/etemplate/et2_widget_tree.ts @@ -375,6 +375,7 @@ export class et2_tree extends et2_inputWidget f(data, f); options = data; } + this.input.deleteChildItems("0"); // if no options given, but autoloading url, use that to load initial nodes if (typeof options.id == 'undefined' && this.input.XMLsource) this.input.loadJSON(this.input.XMLsource);