diff --git a/web/src/components/Filter.tsx b/web/src/components/Filter.tsx index b984cdb..5ebffb7 100644 --- a/web/src/components/Filter.tsx +++ b/web/src/components/Filter.tsx @@ -30,7 +30,7 @@ const FilterPage: React.VoidFunctionComponent = (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 (