mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
fix: null statistics chart reference after destroy
This commit is contained in:
parent
a28ae4d314
commit
2d05ea289a
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue