Commit a472d38f by Alexander Zobnin

snapshot: fix legend rendering bug

parent fdf7a4c4
...@@ -78,8 +78,11 @@ class MetricsPanelCtrl extends PanelCtrl { ...@@ -78,8 +78,11 @@ class MetricsPanelCtrl extends PanelCtrl {
data = data.data; data = data.data;
} }
this.events.emit('data-snapshot-load', data); // Defer panel rendering till the next digest cycle.
return; // 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 // // ignore if we have data stream
......
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