From d30ad45b9f4aade3185371de66f6f943166789de Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 27 Jan 2016 00:31:06 +0300 Subject: [PATCH] Fix functions flushing when editor reopened. --- plugins/datasource-zabbix/queryCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/datasource-zabbix/queryCtrl.js b/plugins/datasource-zabbix/queryCtrl.js index c096f79..77ac082 100644 --- a/plugins/datasource-zabbix/queryCtrl.js +++ b/plugins/datasource-zabbix/queryCtrl.js @@ -17,7 +17,6 @@ define([ $scope.init = function () { $scope.targetLetters = targetLetters; $scope.metric = {}; - $scope.target.functions = []; // Load default values var targetDefaults = { @@ -25,7 +24,8 @@ define([ group: { filter: "" }, host: { filter: "" }, application: { filter: "" }, - item: { filter: "" } + item: { filter: "" }, + functions: [], }; _.defaults($scope.target, targetDefaults);