mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
save as should only delete threshold for panels with alerts
closes #9681
This commit is contained in:
@@ -49,7 +49,10 @@ export class SaveDashboardAsModalCtrl {
|
||||
if (dashboard.id > 0) {
|
||||
this.clone.rows.forEach(row => {
|
||||
row.panels.forEach(panel => {
|
||||
delete panel.thresholds;
|
||||
if (panel.type === "graph" && panel.alert) {
|
||||
delete panel.thresholds;
|
||||
}
|
||||
|
||||
delete panel.alert;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user