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(); } };