fix graph needs destroying first

This commit is contained in:
Simon Smith 2023-10-16 16:22:02 +01:00 committed by GitHub
parent 4b5b9250f1
commit 2791e03338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11446,7 +11446,7 @@
function deviceDetailsStatsClear() {
QV('p17graph', false);
if (window.deviceDetailsStatsChart != null) { delete window.deviceDetailsStatsChart; }
if (window.deviceDetailsStatsChart != null) { window.deviceDetailsStatsChart.destroy(); delete window.deviceDetailsStatsChart; }
if (deviceDetailsStatsTimer != null) { clearInterval(deviceDetailsStatsTimer); deviceDetailsStatsTimer = null; }
deviceDetailsStatsData = [];
deviceDetailsStatsDraw();