Use calculated offset when loading page in PaginatedListState (#3159)

This commit is contained in:
Alexander Skvortsov 2021-11-08 16:33:07 -05:00 committed by GitHub
parent 8e52ec373e
commit e797276606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,8 +93,8 @@ export default abstract class PaginatedListState<T extends Model> {
protected loadPage(page = 1): Promise<T[]> {
const params = this.requestParams();
params.page = {
offset: this.pageSize * (page - 1),
...params.page,
offset: this.pageSize * (page - 1),
};
if (Array.isArray(params.include)) {