From 31c317f5f7815ffcf3751e735755ad15bffa20d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 4 Mar 2016 09:42:21 +0100 Subject: [PATCH] fix(graphite editor): fixed moving functions right and left, broken recently, fixes #3246 --- public/app/plugins/datasource/graphite/func_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/graphite/func_editor.js b/public/app/plugins/datasource/graphite/func_editor.js index cd1f747bc4d..57cdc844375 100644 --- a/public/app/plugins/datasource/graphite/func_editor.js +++ b/public/app/plugins/datasource/graphite/func_editor.js @@ -208,7 +208,7 @@ function (angular, _, $) { if ($target.hasClass('fa-arrow-left')) { $scope.$apply(function() { - _.move($scope.functions, $scope.$index, $scope.$index - 1); + _.move(ctrl.functions, $scope.$index, $scope.$index - 1); ctrl.targetChanged(); }); return; @@ -216,7 +216,7 @@ function (angular, _, $) { if ($target.hasClass('fa-arrow-right')) { $scope.$apply(function() { - _.move($scope.functions, $scope.$index, $scope.$index + 1); + _.move(ctrl.functions, $scope.$index, $scope.$index + 1); ctrl.targetChanged(); }); return;