From fe19e8f7765fab2a7aea6e9ab96f759ed236326c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 13 Jan 2014 21:43:08 +0100 Subject: [PATCH] small fix to graphite target editor --- src/app/controllers/graphiteTarget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {