Skip to content

Commit 19b4513

Browse files
committed
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.
1 parent dba3342 commit 19b4513

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/dashboard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ function InteractiveDashboard({ initialProjects, initialPeriod, initialProvider,
649649

650650
const reloadData = useCallback(async (p: Period, prov: string) => {
651651
setLoading(true)
652-
setOptimizeResult(null)
653652
const range = getDateRange(p)
654653
const data = filterProjectsByName(await parseAllSessions(range, prov), projectFilter, excludeFilter)
655654
setProjects(data)

0 commit comments

Comments
 (0)