diff --git a/src/app/controllers/graphiteTarget.js b/src/app/controllers/graphiteTarget.js index a589cd5a293..a7224b2ced6 100644 --- a/src/app/controllers/graphiteTarget.js +++ b/src/app/controllers/graphiteTarget.js @@ -234,7 +234,7 @@ function (angular, _, config, gfunc, Parser) { $scope.moveAliasFuncLast(); $scope.smartlyHandleNewAliasByNode(newFunc); - if (!funcDef.params.length && newFunc.added) { + if (!newFunc.params.length && newFunc.added) { $scope.targetChanged(); } }; @@ -289,4 +289,4 @@ function (angular, _, config, gfunc, Parser) { }; }); -}); \ No newline at end of file +});