forked from github/plane
fix: project invite modal members filter function (#2080)
This commit is contained in:
parent
f554ad95e9
commit
5e02ad8104
@ -85,7 +85,8 @@ const SendProjectInvitationModal: React.FC<Props> = (props) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const uninvitedPeople = people?.filter((person) => {
|
const uninvitedPeople = people?.filter((person) => {
|
||||||
const isInvited = members?.find((member) => member.display_name === person.member.display_name);
|
const isInvited = members?.find((member) => member.memberId === person.member.id);
|
||||||
|
|
||||||
return !isInvited;
|
return !isInvited;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -143,7 +144,7 @@ const SendProjectInvitationModal: React.FC<Props> = (props) => {
|
|||||||
content: (
|
content: (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<Avatar user={person.member} />
|
<Avatar user={person.member} />
|
||||||
{person.member.display_name}
|
{person.member.display_name} ({person.member.first_name + " " + person.member.last_name})
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user