From 90a9115958d7c048111cb2547740ce50a54494c6 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 26 Dec 2019 17:30:13 +0300 Subject: [PATCH] fix adding func from typeahead, closes #468 --- src/datasource-zabbix/add-metric-function.directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasource-zabbix/add-metric-function.directive.js b/src/datasource-zabbix/add-metric-function.directive.js index 64c2c41c5..17f910329 100644 --- a/src/datasource-zabbix/add-metric-function.directive.js +++ b/src/datasource-zabbix/add-metric-function.directive.js @@ -47,7 +47,7 @@ angular } $scope.$apply(function() { - $scope.addFunction(funcDef); + $scope.ctrl.addFunction(funcDef); }); $input.trigger('blur');