From 1edf45bc4de9dbdccbba1e8e42890ef08debe5b1 Mon Sep 17 00:00:00 2001 From: GedeonTS Date: Fri, 26 Apr 2024 22:56:31 +0200 Subject: [PATCH] [FIX] Add filter on team members --- apps/web/lib/features/team-members.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/lib/features/team-members.tsx b/apps/web/lib/features/team-members.tsx index c9c5a8779..76d82e9b1 100644 --- a/apps/web/lib/features/team-members.tsx +++ b/apps/web/lib/features/team-members.tsx @@ -24,7 +24,7 @@ export function TeamMembers({ publicTeam = false, kanbanView: view = IssuesView. const fullWidth = useRecoilValue(fullWidthState); const { activeTeam } = useOrganizationTeams(); const { teamsFetching } = useOrganizationTeams(); - const members = activeTeam?.members || []; + const members = (activeTeam?.members || []).filter(member => member.employee !== null); const orderedMembers = [...members].sort((a, b) => (sortByWorkStatus(a, b) ? -1 : 1)); const blockViewMembers =