From f123be60cc302bf4c3c72f200bcba49337f0426a Mon Sep 17 00:00:00 2001 From: Siddhant Khare Date: Tue, 26 Sep 2023 13:24:05 +0530 Subject: [PATCH] Redirect to newly created org post after creation (#18800) --- components/dashboard/src/teams/NewTeam.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dashboard/src/teams/NewTeam.tsx b/components/dashboard/src/teams/NewTeam.tsx index c1ffa373c03ccd..e7a1a116933b85 100644 --- a/components/dashboard/src/teams/NewTeam.tsx +++ b/components/dashboard/src/teams/NewTeam.tsx @@ -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) {