[FIX] Only first 48 sets shown on search page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "parandum",
|
||||
"version": "2.3.0",
|
||||
"version": "2.3.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.16.0",
|
||||
|
||||
@@ -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