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

View File

@@ -43,8 +43,8 @@ function NotesPage() {
|| <table>
<tbody>
{notes.map(
(note: any, i: number) => {
return (<NoteEntry note={note} key={i} />);
(note: any) => {
return (<NoteEntry note={note} key={note.slug} />);
}
)}
</tbody>