Fixing ShareBoard users ordering (#2602)

This commit is contained in:
Jesús Espino 2022-03-24 18:12:31 +01:00 committed by GitHub
parent e82305de56
commit 1a5299044f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,17 +272,15 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
<div className='user-items'>
<TeamPermissionsRow/>
{Object.values(members).map((member) => {
const user = boardUsers.find((u) => u.id === member.userId)
if (!user) {
{boardUsers.map((user) => {
if (!members[user.id]) {
return null
}
return (
<UserPermissionsRow
key={user.id}
user={user}
member={member}
member={members[user.id]}
onDeleteBoardMember={onDeleteBoardMember}
onUpdateBoardMember={onUpdateBoardMember}
isMe={user.id === me?.id}