Skip to content

Commit

Permalink
add key to tag-list
Browse files Browse the repository at this point in the history
  • Loading branch information
amozoss committed Aug 18, 2023
1 parent 9a43bbc commit 35933af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/TagLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export function TagLinks({ directory, tag }) {
.map((item, index) => {
let { href } = convertDocId(`docId:${item.frontmatter.docId}`)
return (
<li>
<Link href={href} key={item.frontmatter.docId}>
{item.frontmatter.title}
</Link>
<li key={item.frontmatter.docId}>
<Link href={href}>{item.frontmatter.title}</Link>
</li>
)
})}
Expand Down

0 comments on commit 35933af

Please sign in to comment.