Fix user avatar in mention list not updating (#778)

This commit is contained in:
Sinclair Chen 2022-08-18 17:20:40 -07:00 committed by GitHub
parent 0cf9a90cfb
commit 2537663a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ export const MentionList = forwardRef((props: SuggestionProps<User>, ref) => {
selectedIndex === i ? 'bg-indigo-500 text-white' : 'text-gray-900'
)}
onClick={() => submitUser(i)}
key={user.id}
>
<Avatar avatarUrl={user.avatarUrl} size="xs" />
{user.username}