Snapshots: Fix breakage of some panel types due to missing structureRev (#76586)

This commit is contained in:
Leon Sorokin 2023-10-13 18:56:51 -05:00 committed by GitHub
parent 3ba78c45d1
commit 56c2d8ff40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export function loadSnapshotData(panel: PanelModel, dashboard: DashboardModel):
theme: config.theme2,
timeZone: dashboard.getTimezone(),
}),
structureRev: 1,
annotations,
};
}

View File

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