Update array key

This commit is contained in:
Amy 2022-02-22 22:12:31 -05:00
parent 5d98b8ef8e
commit b4e216c0be
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export default function Home(props: Props) {
<ul>
{props.books.map((book, idx) => {
return (
<li key={`${idx}_${book.isbn ?? ""}`}>
<li key={`${idx}_${book.id}`}>
{book.id}; {book.title}; {book.authors}; {book.isbn}
</li>
);