fix: Cannot read properties of undefined (reading 'id')

This commit is contained in:
Tom Moor
2024-02-01 07:20:26 -05:00
parent 5c368f1433
commit fde8a9fd88
2 changed files with 3 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ function DocumentMembersList({ document, invitedInSession }: Props) {
document.members,
(user) =>
(invitedInSession.includes(user.id) ? "_" : "") +
user.name.toLowerCase(),
user.name.toLocaleLowerCase(),
"asc"
),
[document.members, invitedInSession]