Dashboard Schema V2: Use the right version of transformer when detecting changes (#101850)

use right version of transformer
This commit is contained in:
Haris Rozajac
2025-03-10 13:25:46 +01:00
committed by GitHub
parent f020aae783
commit 774e565b09
@@ -22,7 +22,6 @@ import { LibraryPanelBehavior } from '../scene/LibraryPanelBehavior';
import { VizPanelLinks } from '../scene/PanelLinks';
import { PanelTimeRange } from '../scene/PanelTimeRange';
import { DashboardGridItem } from '../scene/layout-default/DashboardGridItem';
import { transformSceneToSaveModel } from '../serialization/transformSceneToSaveModel';
import { isSceneVariableInstance } from '../settings/variables/utils';
import { DashboardChangeInfo } from './shared';
@@ -122,7 +121,7 @@ export class DashboardSceneChangeTracker {
}
private detectSaveModelChanges() {
const changedDashboard = transformSceneToSaveModel(this._dashboard);
const changedDashboard = this._dashboard.getSaveModel();
const initialDashboard = this._dashboard.getInitialSaveModel();
// Objects must be stringify to ensure they are clonable, so they don't contain functions