소스 검색

Merge pull request #356 from Tetha/master

Fixed an exception when adding a graphite function.
Torkel Ödegaard 11 년 전
부모
커밋
35368442ec
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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) {
     };
   });
 
-});
+});