From 8ae3b8b2eb8e1928927b92b82215753f200907b4 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 29 Jan 2016 16:33:45 +0300 Subject: [PATCH] Fixed panel update when function without params was added. --- plugins/datasource-zabbix/queryCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/datasource-zabbix/queryCtrl.js b/plugins/datasource-zabbix/queryCtrl.js index 33d744e..d9fbaf4 100644 --- a/plugins/datasource-zabbix/queryCtrl.js +++ b/plugins/datasource-zabbix/queryCtrl.js @@ -281,7 +281,8 @@ define([ $scope.moveAliasFuncLast(); - if (newFunc.params.length && newFunc.added) { + if (newFunc.params.length && newFunc.added || + newFunc.def.params.length === 0) { $scope.targetChanged(); } };