fix: wrap setTimeout callback in arrow function

- Fix typescript-eslint(no-implied-eval) warning
- Use arrow function instead of direct function reference
- All oxlint type-aware checks now pass (1 warning -> 0)
This commit is contained in:
2025-11-05 15:03:35 +01:00
parent 8ca7ad14d5
commit e47df43337

View File

@@ -185,7 +185,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (typeof window.refreshAllCharts === "function") {
console.log("Calling refresh charts from theme toggle");
// Add a small delay to ensure DOM updates have completed
setTimeout(window.refreshAllCharts, 100);
setTimeout(() => window.refreshAllCharts(), 100);
}
}