Skip to content

Commit

Permalink
fix unique key props warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mayooear committed Mar 21, 2023
1 parent 8f4c7da commit ae1a1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default function Home() {
}
return (
<>
<div key={index} className={className}>
<div key={`chatMessage-${index}`} className={className}>
{icon}
<div className={styles.markdownanswer}>
<ReactMarkdown linkTarget="_blank">
Expand All @@ -208,7 +208,7 @@ export default function Home() {
className="flex-col"
>
{message.sourceDocs.map((doc, index) => (
<div key={index}>
<div key={`sourceDoc-${index}`}>
<AccordionItem value={`item-${index}`}>
<AccordionTrigger>
<h3>Source {index + 1}</h3>
Expand Down

0 comments on commit ae1a1bd

Please sign in to comment.