|
|
@@ -34,6 +34,7 @@ export class DashRowCtrl {
|
|
|
title: config.new_panel_title,
|
|
|
type: panelId,
|
|
|
id: this.dashboard.getNextPanelId(),
|
|
|
+ isNew: true,
|
|
|
},
|
|
|
};
|
|
|
} else {
|
|
|
@@ -63,7 +64,7 @@ export class DashRowCtrl {
|
|
|
this.row.panels.push(dragObject.panel);
|
|
|
|
|
|
// if not new remove from source row
|
|
|
- if (!dragObject.isNew) {
|
|
|
+ if (!dragObject.panel.isNew) {
|
|
|
dragObject.row.removePanel(dragObject.panel, false);
|
|
|
}
|
|
|
}
|