Skip to content

Commit

Permalink
Merge pull request mayooear#17 from mayooear/fix/next-key-props
Browse files Browse the repository at this point in the history
Fix: unique key props warning
  • Loading branch information
mayooear authored Mar 21, 2023
2 parents 5229a4d + ae1a1bd commit fccd3b0
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 fccd3b0

Please sign in to comment.