From ec97c45d96f417fa311f936c405dc06de939133e Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com> Date: Mon, 8 Nov 2021 16:33:07 -0500 Subject: [PATCH] Use calculated offset when loading page in PaginatedListState (#3159) --- framework/core/js/src/common/states/PaginatedListState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/common/states/PaginatedListState.ts b/framework/core/js/src/common/states/PaginatedListState.ts index b27186daa..77bba2ea6 100644 --- a/framework/core/js/src/common/states/PaginatedListState.ts +++ b/framework/core/js/src/common/states/PaginatedListState.ts @@ -93,8 +93,8 @@ export default abstract class PaginatedListState { protected loadPage(page = 1): Promise { const params = this.requestParams(); params.page = { - offset: this.pageSize * (page - 1), ...params.page, + offset: this.pageSize * (page - 1), }; if (Array.isArray(params.include)) {