Skip to content

Commit

Permalink
[WAKE] previous page button (#863)
Browse files Browse the repository at this point in the history
* fix: pagination fix in wake integration

* fix: previous page button

* fix: remove console log

* pageOffset validation

Co-authored-by: Matheus Gaudencio do Rêgo <[email protected]>

---------

Co-authored-by: Matheus Gaudencio do Rêgo <[email protected]>
  • Loading branch information
lucas-social and matheusgr authored Oct 1, 2024
1 parent 9d34136 commit 2d33d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wake/loaders/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const searchLoader = async (

const hasPreviousPage = page > 1;

const pageOffset = props.pageOffset ?? 1;
const pageOffset = props.pageOffset ?? 0;

if (hasNextPage) {
nextPage.set("page", (page + pageOffset + 1).toString());
Expand Down

0 comments on commit 2d33d44

Please sign in to comment.