Skip to content

Commit ed19999

Browse files
committed
refactor: move setLoading(true) before GitHub import loop
Was called per-iteration inside try block. Only needs to be set once before the loop starts.
1 parent 8b4f19b commit ed19999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/dashboard/DashboardHome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ export function DashboardHome() {
109109

110110
let lastSuccessId: string | null = null
111111
let lastSuccessName = ''
112+
setLoading(true)
112113

113114
for (const repo of githubRepos) {
114115
try {
115-
setLoading(true)
116116
const repoId = await addAndIndex(repo.name, repo.clone_url, repo.default_branch)
117117

118118
if (repoId) {

0 commit comments

Comments
 (0)