Skip to content

Commit

Permalink
fix: broken redirect after org creation
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Jan 8, 2025
1 parent ac95eff commit 328c2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ const createOrga = useAsyncAction(async () => {
const orga = await $fetch('organizations', { method: 'POST', body })
const userPatch: PatchUserReq['body'] = { ignorePersonalAccount: true, defaultOrg: orga.id }
await $fetch('users/' + user.value.id, { method: 'PATCH', body: userPatch })
switchOrganization(orga.id)
switchOrganization(orga.id, undefined, false)
goToRedirect()
}, { catch: 'all' })

Expand Down

0 comments on commit 328c2ff

Please sign in to comment.