Dashboard: Fix iteration property change triggering unsaved changes warning (#51272)

This commit is contained in:
Torkel Ödegaard
2022-07-20 03:41:54 +02:00
committed by GitHub
parent 3bc13e2335
commit 9f4683b3d0
4 changed files with 5 additions and 19 deletions

View File

@@ -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]);

View File

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