Skip to content

Commit 9995e8f

Browse files
committed
Merge branch 'pagination' into moc
2 parents 4fb662e + e95abe3 commit 9995e8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/decap-cms-core/src/reducers/entries.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,11 @@ function entries(
373373
['pagination', collection],
374374
existingPagination.set('currentPage', 1).set('totalCount', sortedIds.size),
375375
);
376+
} else {
377+
map.setIn(
378+
['pagination', collection],
379+
fromJS({ currentPage: 1, totalCount: sortedIds.size, pageSize: 100 }),
380+
);
376381
}
377382
});
378383
return newState;

0 commit comments

Comments
 (0)