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

This commit is contained in:
Torkel Ödegaard 2014-01-03 11:24:51 +01:00
parent abac12d2a5
commit aa8c881471

View File

@ -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 {