mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Destroy charts before the layout removes them from the DOM
This commit is contained in:
parent
f4cbc1e5da
commit
e4e773c10c
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,12 @@ export default function MapsFactory(Private) {
|
|||
}
|
||||
|
||||
draw() {
|
||||
// Destroy the charts before they get removed from the DOM on the new
|
||||
// layout render.
|
||||
if(this.charts !== undefined) {
|
||||
this.charts.forEach(chart => chart.destroy());
|
||||
}
|
||||
|
||||
this.layout.render();
|
||||
// todo: title
|
||||
const self = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue