Преглед на файлове

small fix to graphite target editor

Torkel Ödegaard преди 12 години
родител
ревизия
fe19e8f776
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/app/controllers/graphiteTarget.js

+ 1 - 1
src/app/controllers/graphiteTarget.js

@@ -46,7 +46,7 @@ function (angular, _, config, gfunc, Parser) {
         $scope.showTextEditor = true;
         $scope.showTextEditor = true;
       }
       }
 
 
-      checkOtherSegments($scope.segments.length);
+      checkOtherSegments($scope.segments.length - 1);
     }
     }
 
 
     function parseTargeRecursive(astNode, func, index) {
     function parseTargeRecursive(astNode, func, index) {