Skip to content
Snippets Groups Projects
Commit 360287f1 authored by thombje's avatar thombje
Browse files

bug fix

parent c96b0abe
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,11 @@ function Movies(props: MoviesProps){
return (
<InfiniteScroll
pageStart={0}
loadMore={() => getAllMovies({ lim: MoviesStore.movies.length + 13 })}
loadMore={() => {
if (MoviesStore.hasMore){
getAllMovies({ lim: MoviesStore.movies.length + 13 })
}
}}
hasMore={MoviesStore.hasMore}
useWindow={true}
loader={
......@@ -76,6 +80,8 @@ function Movies(props: MoviesProps){
</InfiniteScroll>
);
}
export default inject('moviesStore')(observer(Movies))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment