We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8991a7f commit 311c9e1Copy full SHA for 311c9e1
src/components/blog-page/blog-tags.tsx
@@ -25,7 +25,12 @@ export function BlogTags({
25
}
26
27
const tagElement = (
28
- <Tag className={opaque ? "bg-neu-0" : ""} color={color}>
+ // conditionally add a key here to avoid react list key errors
29
+ <Tag
30
+ key={!links ? tag : undefined}
31
+ className={opaque ? "bg-neu-0" : ""}
32
+ color={color}
33
+ >
34
{tag.replaceAll("-", " ")}
35
</Tag>
36
)
0 commit comments