fix(dashboard): add cache-busting and defensive chartManager guards to fix empty charts
Some checks failed
CI / Check (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Formatting (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Release Build (push) Has been cancelled

This commit is contained in:
2026-03-02 13:28:29 -05:00
parent 8d50ce7c22
commit 1766a12ea2
8 changed files with 88 additions and 34 deletions

View File

@@ -79,8 +79,9 @@ class Dashboard {
}
async loadPage(page) {
if (window.chartManager) {
window.chartManager.destroyAllCharts();
const cm = window.chartManager;
if (cm) {
cm.destroyAllCharts();
}
this.currentPage = page;