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'>
|
||||
<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}
|
||||
|
|
Loading…
Reference in a new issue