From b119eaf5a21e3834de34307e49122c6367e9dc83 Mon Sep 17 00:00:00 2001 From: mtgto Date: Sun, 4 Apr 2021 17:56:20 +0900 Subject: [PATCH] Fix sometime next book is null --- web/src/components/Filter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (