fix graph needs destroying first
Simon Smith committed
Oct 16, 2023 at 16:22 UTC
2791e03338e50988a6bf87e4d331786cc7e9495a
1 file changed
+1
-1
views/default.handlebars
+1
-1
@@ -11446,7 +11446,7 @@
11446
11447
function deviceDetailsStatsClear() {
11448
QV('p17graph', false);
11449
- if (window.deviceDetailsStatsChart != null) { delete window.deviceDetailsStatsChart; }
11449
+ if (window.deviceDetailsStatsChart != null) { window.deviceDetailsStatsChart.destroy(); delete window.deviceDetailsStatsChart; }
11450
if (deviceDetailsStatsTimer != null) { clearInterval(deviceDetailsStatsTimer); deviceDetailsStatsTimer = null; }
11451
deviceDetailsStatsData = [];
11452
deviceDetailsStatsDraw();