From 42c7ae5a26b8531a17b60ef758d0592d7a043dde Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 6 Oct 2023 22:15:30 +0600 Subject: [PATCH] Minor change --- src/components/ShareOptions/ShareTeamMemberList.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ShareOptions/ShareTeamMemberList.tsx b/src/components/ShareOptions/ShareTeamMemberList.tsx index 6b1e4b35a..27bb77893 100644 --- a/src/components/ShareOptions/ShareTeamMemberList.tsx +++ b/src/components/ShareOptions/ShareTeamMemberList.tsx @@ -71,9 +71,8 @@ export function ShareTeamMemberList(props: ShareTeamMemberListProps) { return; } - const joinedMembers = response.filter( - (member) => member.status === 'joined' - ); + const joinedMembers = + response?.filter((member) => member.status === 'joined') || []; membersCache.set(teamId, joinedMembers); }