fix: same key in list (#1231)

This commit is contained in:
Stephen Zhou
2024-01-05 12:26:10 +08:00
committed by GitHub
parent 249a87366b
commit 6ffa3bc25d
+1 -1
View File
@@ -45,7 +45,7 @@ export default function ShortList({
<div className="grid gap-3 grid-cols-4 sm:grid-cols-8 relative">
{shorts.list.map((post) => (
<Tooltip
key={post.noteId}
key={`${post.characterId}-${post.noteId}`}
label={
post.metadata?.content?.title ||
post.metadata?.content?.summary ||