fix(builder/monitor): Fix `# of runs` count on first load (#7558)

Return mutated copy rather than in-place mutated `flowRuns` in `refreshFlowRuns(..)`

Fixes #7507
pull/7513/head^2
Reinier van der Leer 2024-07-23 00:15:54 +02:00 committed by GitHub
parent 7de49dfbe5
commit 470c738732
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ const Monitor = () => {
else { else {
flowRuns.push(flowRun) flowRuns.push(flowRun)
} }
return flowRuns return [...flowRuns]
})); }));
})); }));
} }