Skip to content

Commit

Permalink
fix graph needs destroying first
Browse files Browse the repository at this point in the history
  • Loading branch information
si458 authored Oct 16, 2023
1 parent 4b5b925 commit 2791e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2791e03

Please sign in to comment.