Skip to content

Commit

Permalink
Fix page id to destroy all pages while book is changing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgto committed Apr 4, 2021
1 parent 3f231d6 commit 63fedf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/Book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const pages = (book: Book, classes: ReturnType<typeof useStyles>) => {
return [...Array(book.pageCount).keys()].map((i: number) => (
<img
className={classes.image}
key={i}
key={`${book.id}.${i}`}
src={`/images/books/${book.id}/pages/${i}`}
></img>
));
Expand Down

0 comments on commit 63fedf3

Please sign in to comment.