Skip to content

Commit

Permalink
fix: make it possible to jump to system messages in MessageList
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed May 28, 2024
1 parent 5a68c09 commit 9a752e2
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 9a752e2

Please sign in to comment.