fix exception in member list (#3479)

This commit is contained in:
rahulramesha 2024-01-25 19:50:34 +05:30 committed by GitHub
parent e78c1f2060
commit ddae745669
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,8 @@ export const ProjectMemberList: React.FC = observer(() => {
const searchedMembers = (projectMemberIds ?? []).filter((userId) => { const searchedMembers = (projectMemberIds ?? []).filter((userId) => {
const memberDetails = getProjectMemberDetails(userId); const memberDetails = getProjectMemberDetails(userId);
if (!memberDetails?.member) return false;
const fullName = `${memberDetails?.member.first_name} ${memberDetails?.member.last_name}`.toLowerCase(); const fullName = `${memberDetails?.member.first_name} ${memberDetails?.member.last_name}`.toLowerCase();
const displayName = memberDetails?.member.display_name.toLowerCase(); const displayName = memberDetails?.member.display_name.toLowerCase();