Skip to content

Commit

Permalink
use message id as component key
Browse files Browse the repository at this point in the history
Co-authored-by: david qiu <[email protected]>
  • Loading branch information
michaelchia and dlqqq authored Jun 18, 2024
1 parent 0c7c5da commit 428e961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/src/components/pending-messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export function PendingMessages(
}
}}
>
{props.messages.map((message, j) => (
{props.messages.map((message) => (
<PendingMessageElement
key={j}
key={message.id}
text={message.body}
ellipsis={message.ellipsis}
/>
Expand Down

0 comments on commit 428e961

Please sign in to comment.