mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Fix iteration property change triggering unsaved changes warning (#51272)
This commit is contained in:
@@ -60,12 +60,6 @@ describe('DashboardPrompt', () => {
|
||||
expect(hasChanges(dash, original)).toBe(false);
|
||||
});
|
||||
|
||||
it('Should ignore .iteration changes', () => {
|
||||
const { original, dash } = getTestContext();
|
||||
dash.iteration = new Date().getTime() + 1;
|
||||
expect(hasChanges(dash, original)).toBe(false);
|
||||
});
|
||||
|
||||
it('Should ignore row collapse change', () => {
|
||||
const { original, dash } = getTestContext();
|
||||
dash.toggleRow(dash.panels[1]);
|
||||
|
||||
@@ -181,9 +181,6 @@ function cleanDashboardFromIgnoredChanges(dashData: any) {
|
||||
dash.schemaVersion = 0;
|
||||
dash.timezone = 0;
|
||||
|
||||
// ignore iteration property
|
||||
delete dash.iteration;
|
||||
|
||||
dash.panels = [];
|
||||
|
||||
// ignore template variable values
|
||||
|
||||
Reference in New Issue
Block a user