mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Snapshots: Fix breakage of some panel types due to missing structureRev (#76586)
This commit is contained in:
@@ -36,6 +36,7 @@ export function loadSnapshotData(panel: PanelModel, dashboard: DashboardModel):
|
||||
theme: config.theme2,
|
||||
timeZone: dashboard.getTimezone(),
|
||||
}),
|
||||
structureRev: 1,
|
||||
annotations,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ export class PanelQueryRunner {
|
||||
state: LoadingState.Done,
|
||||
series: this.dataConfigSource.snapshotData.map((v) => toDataFrame(v)),
|
||||
timeRange: getDefaultTimeRange(), // Don't need real time range for snapshots
|
||||
structureRev,
|
||||
};
|
||||
return of(snapshotPanelData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user