[FIX] Only first 48 sets shown on search page
This commit is contained in:
@@ -88,7 +88,7 @@ export default withRouter(class SearchSets extends Component {
|
||||
|
||||
let completeSetsRef;
|
||||
|
||||
if (this.state.pageNumber === 0 || reload) {
|
||||
if (this.state.pageNumber % paginationFrequency === 0 || reload) {
|
||||
completeSetsRef = setsRef.limit(paginationFrequency);
|
||||
} else {
|
||||
completeSetsRef = setsRef.startAfter(this.state.sets[this.state.sets.length - 1]).limit(paginationFrequency);
|
||||
|
||||
Reference in New Issue
Block a user