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

@@ -125,7 +125,7 @@ System.register(['lodash', '../datasource-zabbix/utils', './triggers_panel_ctrl'
_.each(this.panel.datasources, function (ds) {
if (!_this2.panel.targets[ds]) {
_this2.panel.targets[ds] = DEFAULT_TARGET;
_this2.panel.targets[ds] = _.cloneDeep(DEFAULT_TARGET);
}
});
this.parseTarget();