Skip to content

Commit

Permalink
fix: fetch user info before fetch user orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
wfnuser committed Nov 12, 2024
1 parent 61ac908 commit 45a5d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/import-project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function ImportProject() {
const data = await getUserOrgs()
return [{ login: profile?.username, avatar_url: profile?.avatarUrl, id: 'current_user' }, ...data]
},
enabled: !!open,
enabled: !!open && !!profile,
})

const { data: repos } = useQuery({
Expand Down

0 comments on commit 45a5d37

Please sign in to comment.