[FIX] Only first 48 sets shown on search page

This commit is contained in:
2022-09-14 15:32:49 +01:00
parent 0f1f23ae57
commit ae8d7efa53
2 changed files with 2 additions and 2 deletions

View File

@@ -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);