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

This commit is contained in:
Torkel Ödegaard
2020-10-08 18:38:20 +02:00
committed by GitHub
parent 2567e5202a
commit 71d72cc973
@@ -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(() => {