Browse Source

fix function re-ordering broken in #9436

Dan Cech 8 years ago
parent
commit
588ce6606c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/app/plugins/datasource/graphite/func_editor.js

+ 2 - 2
public/app/plugins/datasource/graphite/func_editor.js

@@ -208,7 +208,7 @@ function (angular, _, $) {
 
 
               if ($target.hasClass('fa-arrow-left')) {
               if ($target.hasClass('fa-arrow-left')) {
                 $scope.$apply(function() {
                 $scope.$apply(function() {
-                  _.move(ctrl.functions, $scope.$index, $scope.$index - 1);
+                  _.move(ctrl.queryModel.functions, $scope.$index, $scope.$index - 1);
                   ctrl.targetChanged();
                   ctrl.targetChanged();
                 });
                 });
                 return;
                 return;
@@ -216,7 +216,7 @@ function (angular, _, $) {
 
 
               if ($target.hasClass('fa-arrow-right')) {
               if ($target.hasClass('fa-arrow-right')) {
                 $scope.$apply(function() {
                 $scope.$apply(function() {
-                  _.move(ctrl.functions, $scope.$index, $scope.$index + 1);
+                  _.move(ctrl.queryModel.functions, $scope.$index, $scope.$index + 1);
                   ctrl.targetChanged();
                   ctrl.targetChanged();
                 });
                 });
                 return;
                 return;