Fixing ShareBoard users ordering (#2602)
This commit is contained in:
parent
e82305de56
commit
1a5299044f
1 changed files with 3 additions and 5 deletions
|
@ -272,17 +272,15 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
|
||||||
<div className='user-items'>
|
<div className='user-items'>
|
||||||
<TeamPermissionsRow/>
|
<TeamPermissionsRow/>
|
||||||
|
|
||||||
{Object.values(members).map((member) => {
|
{boardUsers.map((user) => {
|
||||||
const user = boardUsers.find((u) => u.id === member.userId)
|
if (!members[user.id]) {
|
||||||
if (!user) {
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UserPermissionsRow
|
<UserPermissionsRow
|
||||||
key={user.id}
|
key={user.id}
|
||||||
user={user}
|
user={user}
|
||||||
member={member}
|
member={members[user.id]}
|
||||||
onDeleteBoardMember={onDeleteBoardMember}
|
onDeleteBoardMember={onDeleteBoardMember}
|
||||||
onUpdateBoardMember={onUpdateBoardMember}
|
onUpdateBoardMember={onUpdateBoardMember}
|
||||||
isMe={user.id === me?.id}
|
isMe={user.id === me?.id}
|
||||||
|
|
Loading…
Reference in a new issue