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.
This commit is contained in:
iamtoruk 2026-04-19 13:16:51 -07:00 • committed by AgentSeal
parent dba33428ca
commit 19b4513400

View file

@ -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)