Skip to content

Scheduling infrastructure for absolutely everyone.

fix: App installation option at the team level (#20666)

Anik Dhabal Babu9eb1fe06e395
diff --git a/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts b/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts
index 13525879d03..6b6a97fce07 100644
--- a/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts
+++ b/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts
@@ -24,17 +24,13 @@ const getUser = async (userId: number) => {
return null;
}
- let teams = userAdminTeams.teams.map(({ team }) => ({
+ const teams = userAdminTeams.teams.map(({ team }) => ({
...team,
logoUrl: team.parent
? getPlaceholderAvatar(team.parent.logoUrl, team.parent.name)
: getPlaceholderAvatar(team.logoUrl, team.name),
}));
- const orgTeam = teams.find((team) => team.isOrganization === true);
- if (orgTeam?.id) {
- teams = teams.filter((team) => team?.parent?.id !== orgTeam.id);
- }
return {
...userAdminTeams,
teams,