diff --git a/src/components/Library/Library.jsx b/src/components/Library/Library.jsx index a290803..eda5810 100644 --- a/src/components/Library/Library.jsx +++ b/src/components/Library/Library.jsx @@ -419,7 +419,7 @@ export default function Library({ filter, setFilter }) { //remove the empty dependency array useEffect(() => { fetchBooksFromDB(); - }); + }, []); // open hidden content when ellipsis icon is clicked const handleShowMore = (index) => {