From af9f8e6e71eaa89d808bf82f8caca0d7fa5598f4 Mon Sep 17 00:00:00 2001 From: sylenien Date: Mon, 3 Oct 2022 11:20:58 +0200 Subject: [PATCH] change(ui): remove tojs method call --- .../shared/SessionListContainer/components/Notes/NoteList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/shared/SessionListContainer/components/Notes/NoteList.tsx b/frontend/app/components/shared/SessionListContainer/components/Notes/NoteList.tsx index f5a0fd119..b16c43fba 100644 --- a/frontend/app/components/shared/SessionListContainer/components/Notes/NoteList.tsx +++ b/frontend/app/components/shared/SessionListContainer/components/Notes/NoteList.tsx @@ -39,7 +39,7 @@ function NotesList({ members }: {members: Array>}) { date={note.createdAt} noteId={note.noteId} sessionId={note.sessionId} - userEmail={members.toJS().find(m => m.id === note.userId)?.email || note.userId} + userEmail={members.find(m => m.id === note.userId)?.email || note.userId} /> ))}