Skip to content

Commit

Permalink
Redirect to newly created org post after creation (#18800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant-K-code authored Sep 26, 2023
1 parent e06508b commit f123be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/dashboard/src/teams/NewTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default function NewTeamPage() {
const team = publicApiTeamToProtocol((await teamsService.createTeam({ name })).team!);

invalidateOrgs();
history.push(`/?org=${team.id}`);
// Redirects to the new Org's dashboard
history.push(`/workspaces/?org=${team.id}`);
} catch (error) {
console.error(error);
if (error instanceof ConnectError) {
Expand Down

0 comments on commit f123be6

Please sign in to comment.