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

pull/76507/head
Leon Sorokin 2 years ago committed by GitHub
parent 3ba78c45d1
commit 56c2d8ff40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/features/dashboard/utils/loadSnapshotData.ts
  2. 1
      public/app/features/query/state/PanelQueryRunner.ts

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

Loading…
Cancel
Save