Fix saving alert rules

This commit is contained in:
Alexander Zobnin
2021-06-02 13:39:33 +03:00
parent eb389afc11
commit e1557e3924

View File

@@ -201,11 +201,12 @@ export class ZabbixQueryController extends QueryCtrl {
this.onTargetBlur();
});
this.init = function() {
this.init = () => {
let target = this.target;
// Migrate old targets
target = migrations.migrate(target);
this.refresh();
const scopeDefaults = {
metric: {},