diff --git a/apps/web/modules/settings/organizations/new/_components/AddNewTeamsForm.tsx b/apps/web/modules/settings/organizations/new/_components/AddNewTeamsForm.tsx index 8adb8ce9a8..529363abab 100644 --- a/apps/web/modules/settings/organizations/new/_components/AddNewTeamsForm.tsx +++ b/apps/web/modules/settings/organizations/new/_components/AddNewTeamsForm.tsx @@ -78,9 +78,11 @@ const AddNewTeamsFormChild = ({ teams }: { teams: { id: number; name: string; sl teams: teamsToCreateFromStore.length ? teamsToCreateFromStore : [{ name: "" }], moveTeams: teams.map((team) => { const teamToMigrateInStore = teamsToMigrateFromStore.find((t) => t.id === team.id); + const slugConflictsWithOrg = team.slug === orgSlug; return { id: team.id, - shouldMove: !!teamToMigrateInStore, + // The team with conflicting slug must be moved + shouldMove: slugConflictsWithOrg || !!teamToMigrateInStore, newSlug: teamToMigrateInStore?.slug || getSuggestedSlug({ teamSlug: team.slug, orgSlug }), name: team.name, }; @@ -160,6 +162,9 @@ const AddNewTeamsFormChild = ({ teams }: { teams: { id: number; name: string; sl