mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
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:
parent
dba33428ca
commit
19b4513400
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue