From e1557e39249f37987a7ade959d07e07a613eacbe Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 2 Jun 2021 13:39:33 +0300 Subject: [PATCH] Fix saving alert rules --- src/datasource-zabbix/query.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datasource-zabbix/query.controller.ts b/src/datasource-zabbix/query.controller.ts index 746bad2..ec94b5e 100644 --- a/src/datasource-zabbix/query.controller.ts +++ b/src/datasource-zabbix/query.controller.ts @@ -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: {},