Skip to content

Commit

Permalink
Drop unnecessary key
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsj committed Jan 16, 2025
1 parent 24657f0 commit a41ae76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/ChatMessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export function ChatMessageList({ messages, loading }: ChatMessageListProps) {

const renderItem: ListRenderItem<ChatMessage> = useCallback(
({ item: message }) => (
<ChatMessageBubble
key={message.id}
message={message}
avatarURL={getAvatarURL(message.avatarRef)}
/>
<ChatMessageBubble message={message} avatarURL={getAvatarURL(message.avatarRef)} />
),
[getAvatarURL],
);
Expand Down

0 comments on commit a41ae76

Please sign in to comment.