From 2537663a57fa6332008f2dd595e3b9d0b4ab257f Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Thu, 18 Aug 2022 17:20:40 -0700 Subject: [PATCH] Fix user avatar in mention list not updating (#778) --- web/components/editor/mention-list.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/editor/mention-list.tsx b/web/components/editor/mention-list.tsx index f9e67daf..aeab4636 100644 --- a/web/components/editor/mention-list.tsx +++ b/web/components/editor/mention-list.tsx @@ -51,6 +51,7 @@ export const MentionList = forwardRef((props: SuggestionProps, ref) => { selectedIndex === i ? 'bg-indigo-500 text-white' : 'text-gray-900' )} onClick={() => submitUser(i)} + key={user.id} > {user.username}