From 9eb1fe06e395f6548a4a8e6d729e516afd319c1d Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Sat, 12 Apr 2025 00:36:18 +0530 Subject: [PATCH] fix: App installation option at the team level (#20666) * fix: app installation option on team level * update --- .../lib/apps/installation/[[...step]]/getServerSideProps.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts b/apps/web/lib/apps/installation/[[...step]]/getServerSideProps.ts index 13525879d0..6b6a97fce0 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,