From b0ef704c4b8579587b1a35b32ffe6cc0f04763f7 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 10 Nov 2021 15:00:32 -0700 Subject: [PATCH] Clear tree before setting options to avoid duplicates --- api/js/etemplate/et2_widget_tree.ts | 1 + 1 file changed, 1 insertion(+) 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);