mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-02-13 15:15:43 +01:00
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:
@@ -185,7 +185,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
if (typeof window.refreshAllCharts === "function") {
|
if (typeof window.refreshAllCharts === "function") {
|
||||||
console.log("Calling refresh charts from theme toggle");
|
console.log("Calling refresh charts from theme toggle");
|
||||||
// Add a small delay to ensure DOM updates have completed
|
// Add a small delay to ensure DOM updates have completed
|
||||||
setTimeout(window.refreshAllCharts, 100);
|
setTimeout(() => window.refreshAllCharts(), 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user