fix: null statistics chart reference after destroy

This commit is contained in:
camilleislasse 2026-04-18 06:32:12 +02:00
parent a28ae4d314
commit 2d05ea289a

View file

@ -137,6 +137,7 @@ if (element) {
if (mutation.attributeName === 'data-sales' || mutation.attributeName === 'data-intervals') {
if (chart) {
chart.destroy();
chart = null;
}
renderChart();
}
@ -156,6 +157,7 @@ if (element) {
}
if (chart) {
chart.destroy();
chart = null;
}
renderChart();
}