Fix saving alert rules
This commit is contained in:
@@ -201,11 +201,12 @@ export class ZabbixQueryController extends QueryCtrl {
|
|||||||
this.onTargetBlur();
|
this.onTargetBlur();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.init = function() {
|
this.init = () => {
|
||||||
let target = this.target;
|
let target = this.target;
|
||||||
|
|
||||||
// Migrate old targets
|
// Migrate old targets
|
||||||
target = migrations.migrate(target);
|
target = migrations.migrate(target);
|
||||||
|
this.refresh();
|
||||||
|
|
||||||
const scopeDefaults = {
|
const scopeDefaults = {
|
||||||
metric: {},
|
metric: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user