mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 11:31:27 +08:00
Use calculated offset when loading page in PaginatedListState (#3159)
This commit is contained in:
parent
8e52ec373e
commit
e797276606
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user