diff --git a/src/app/controllers/graphiteTarget.js b/src/app/controllers/graphiteTarget.js index 4225dcedb17..04b1a6a4771 100644 --- a/src/app/controllers/graphiteTarget.js +++ b/src/app/controllers/graphiteTarget.js @@ -46,7 +46,7 @@ function (angular, _, config, gfunc, Parser) { $scope.showTextEditor = true; } - checkOtherSegments($scope.segments.length); + checkOtherSegments($scope.segments.length - 1); } function parseTargeRecursive(astNode, func, index) {