diff --git a/src/Pages/Search.js b/src/Pages/Search.js index db1c0201834e8a4b54f7ac4f3313425255cf436e..df73156155fd5ba1405a6601bd900df4448c7efa 100644 --- a/src/Pages/Search.js +++ b/src/Pages/Search.js @@ -142,8 +142,10 @@ export default function Search(props) { }, [window.history.state === null ? true : window.history.state.key, state.currentUser.id]) useEffect(() => { - setIsLoading(true); - collectStuff(option); + if (resultsPerPage > 12) { + setIsLoading(true); + collectStuff(option); + } }, [resultsPerPage]); return (