Skip to content

Commit

Permalink
fix: make it possible to jump to system messages in MessageList (#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jun 3, 2024
1 parent b614eff commit 6cb81c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MessageList/renderMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function defaultRenderMessages<
);
} else if (message.type === 'system') {
renderedMessages.push(
<li key={message.id || (message.created_at as string)}>
<li data-message-id={message.id} key={message.id || (message.created_at as string)}>
<MessageSystem message={message} />
</li>,
);
Expand Down

0 comments on commit 6cb81c5

Please sign in to comment.