Fix broken chart after resize

This commit is contained in:
Bartek Fabiszewski 2020-04-14 21:07:54 +02:00
parent dba24024b0
commit 7c45673168

View File

@ -130,7 +130,9 @@ export default class ChartViewModel extends ViewModel {
this.model.chartVisible = !this.model.chartVisible;
};
this.model.onMenuToggle = () => {
this.chart.update();
if (this.model.chartVisible) {
this.chart.update();
}
};
}