Commit 71d72cc9 by Torkel Ödegaard Committed by GitHub

Snapshots: Fixed issue loading graphs in snapshots (#28111)

parent 2567e520
......@@ -81,6 +81,12 @@ class MetricsPanelCtrl extends PanelCtrl {
data = data.data;
}
this.panelData = {
state: LoadingState.Done,
series: data,
timeRange: this.range,
};
// Defer panel rendering till the next digest cycle.
// For some reason snapshot panels don't init at this time, so this helps to avoid rendering issues.
return this.$timeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment