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

* fix: app installation option on team level

* update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-04-11 19:06:18 +00:00
1 parent 007349a180
commit 9eb1fe06e3
1 file changed
+1 -5
@@ -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,