From 19b45134004ef1e3da1944d806fe8ede6efe7eec Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Sun, 19 Apr 2026 13:16:51 -0700 Subject: [PATCH] fix: auto-refresh no longer resets optimize view reloadData() was clearing optimizeResult before fetching, which caused the optimize screen to flash back to the dashboard on every 30s refresh cycle. Let the projects useEffect re-scan naturally. --- src/dashboard.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dashboard.tsx b/src/dashboard.tsx index 1849e945..69a47d83 100644 --- a/src/dashboard.tsx +++ b/src/dashboard.tsx @@ -649,7 +649,6 @@ function InteractiveDashboard({ initialProjects, initialPeriod, initialProvider, const reloadData = useCallback(async (p: Period, prov: string) => { setLoading(true) - setOptimizeResult(null) const range = getDateRange(p) const data = filterProjectsByName(await parseAllSessions(range, prov), projectFilter, excludeFilter) setProjects(data)