Skip to content

Commit

Permalink
Fix sometime next book is null
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgto committed Apr 4, 2021
1 parent 63fedf3 commit b119eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FilterPage: React.VoidFunctionComponent<Props> = (props: Props) => {
dispatch(setCurrentList(books.map((book) => book.id)));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [filter]);
}, [filter, books.map((book) => book.id).join(",")]);
return (
<Library
books={books}
Expand Down

0 comments on commit b119eaf

Please sign in to comment.