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

pull/7/head
Torkel Ödegaard 12 years ago
parent abac12d2a5
commit aa8c881471
  1. 1
      src/app/panels/graphite/module.js

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

Loading…
Cancel
Save