From 1a5299044fff2b97f4c83af9f9940c5d9558d1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 24 Mar 2022 18:12:31 +0100 Subject: [PATCH] Fixing ShareBoard users ordering (#2602) --- webapp/src/components/shareBoard/shareBoard.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/shareBoard/shareBoard.tsx b/webapp/src/components/shareBoard/shareBoard.tsx index 21860df1d..b4d13bb0c 100644 --- a/webapp/src/components/shareBoard/shareBoard.tsx +++ b/webapp/src/components/shareBoard/shareBoard.tsx @@ -272,17 +272,15 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
- {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 (