Commit 32d1477b by Daniel Lee Committed by GitHub

Merge pull request #11319 from alexanderzobnin/fix-11318

snapshot: fix legend rendering bug
parents 70630d74 a472d38f
......@@ -78,8 +78,11 @@ class MetricsPanelCtrl extends PanelCtrl {
data = data.data;
}
// 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);
return;
});
}
// // 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