fix target duplication in query editor

This commit is contained in:
Alexander Zobnin
2017-12-21 12:17:49 +03:00
parent 45430a6f2a
commit 69bc415fd9
5 changed files with 35 additions and 35 deletions

View File

@@ -72,7 +72,7 @@ class TriggersTabCtrl {
datasourcesChanged() {
_.each(this.panel.datasources, (ds) => {
if (!this.panel.targets[ds]) {
this.panel.targets[ds] = DEFAULT_TARGET;
this.panel.targets[ds] = _.cloneDeep(DEFAULT_TARGET);
}
});
this.parseTarget();