Skip to content

Commit a820576

Browse files
committed
fix(frontend): send correct page to Hm_MessagesStore on next or previous
1 parent a782deb commit a820576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/core/js_modules/actions/pagination.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function nextPage() {
2020

2121
const nextPage = parseInt(currentPage) + 1;
2222

23-
const store = new Hm_MessagesStore(getListPathParam(), currentPage, `${getParam('keyword')}_${getParam('filter')}`, getParam('sort'));
23+
const store = new Hm_MessagesStore(getListPathParam(), nextPage, `${getParam('keyword')}_${getParam('filter')}`, getParam('sort'));
2424
store.load(false, false, true);
2525

2626
await changePage(nextPage, this);
@@ -32,7 +32,7 @@ async function previousPage() {
3232
const previousPage = parseInt(currentPage) - 1;
3333

3434
if (previousPage > 1) {
35-
const store = new Hm_MessagesStore(getListPathParam(), previousPage - 1, `${getParam('keyword')}_${getParam('filter')}`, getParam('sort'));
35+
const store = new Hm_MessagesStore(getListPathParam(), previousPage, `${getParam('keyword')}_${getParam('filter')}`, getParam('sort'));
3636
store.load(false, false, true);
3737
}
3838

0 commit comments

Comments
 (0)