react: fix incorrect use of keys

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
This commit is contained in:
2024-12-06 13:52:40 -05:00
parent 4f25a3bc3d
commit ff03bd50ff
7 changed files with 80 additions and 80 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ function RecentNotes() {
{notes?.slice(0, 5)
.map(({slug, title, mtime}) => {
return (
<li key={mtime.getTime()} >
<li key={slug} >
<Link href={`/notes/${slug}`}>{title}</Link>
</li>
);