mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
snapshot: fix legend rendering bug
This commit is contained in:
parent
fdf7a4c435
commit
a472d38fbf
@ -78,8 +78,11 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
data = data.data;
|
||||
}
|
||||
|
||||
this.events.emit('data-snapshot-load', data);
|
||||
return;
|
||||
// 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(() => {
|
||||
this.events.emit('data-snapshot-load', data);
|
||||
});
|
||||
}
|
||||
|
||||
// // ignore if we have data stream
|
||||
|
Loading…
Reference in New Issue
Block a user