Parcourir la source

fix: duplicate graphite panel was not working when new row needed to be created

Torkel Ödegaard il y a 12 ans
Parent
commit
aa8c881471
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/app/panels/graphite/module.js

+ 1 - 0
src/app/panels/graphite/module.js

@@ -447,6 +447,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
         if (rowIndex === rowsList.length - 1) {
           var newRow = angular.copy($scope.row);
           newRow.panels = [];
+          $scope.dashboard.current.rows.push(newRow);
           $scope.duplicate(newRow);
         }
         else {