From e47df433370c9e2bc8c9a943739491e488db07d7 Mon Sep 17 00:00:00 2001 From: Kaj Kowalski Date: Wed, 5 Nov 2025 15:03:35 +0100 Subject: [PATCH] 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) --- dashboard_project/static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard_project/static/js/main.js b/dashboard_project/static/js/main.js index cc26a22..4884e82 100644 --- a/dashboard_project/static/js/main.js +++ b/dashboard_project/static/js/main.js @@ -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); } }