Skip to content

Commit 58b4bac

Browse files
Redirect to newly created org post after creation
1 parent 2565a1c commit 58b4bac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dashboard/src/teams/NewTeam.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default function NewTeamPage() {
2727
const team = publicApiTeamToProtocol((await teamsService.createTeam({ name })).team!);
2828

2929
invalidateOrgs();
30-
history.push(`/?org=${team.id}`);
30+
// Redirects to the new Org's dashboard
31+
history.push(`/workspaces/?org=${team.id}`);
3132
} catch (error) {
3233
console.error(error);
3334
if (error instanceof ConnectError) {

0 commit comments

Comments
 (0)