Ver código fonte

Merge pull request #356 from Tetha/master

Fixed an exception when adding a graphite function.
Torkel Ödegaard 11 anos atrás
pai
commit
35368442ec
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/app/controllers/graphiteTarget.js

+ 2 - 2
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) {
     };
   });
 
-});
+});