mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
fix graph needs destroying first
This commit is contained in:
parent
4b5b9250f1
commit
2791e03338
@ -11446,7 +11446,7 @@
|
|||||||
|
|
||||||
function deviceDetailsStatsClear() {
|
function deviceDetailsStatsClear() {
|
||||||
QV('p17graph', false);
|
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; }
|
if (deviceDetailsStatsTimer != null) { clearInterval(deviceDetailsStatsTimer); deviceDetailsStatsTimer = null; }
|
||||||
deviceDetailsStatsData = [];
|
deviceDetailsStatsData = [];
|
||||||
deviceDetailsStatsDraw();
|
deviceDetailsStatsDraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user