Skip to content

Conversation

@sethidden
Copy link
Contributor

consider this case:

  • there are 11 items
  • itemsPerPage is 10
  • so there are 2 pages
  • you go to page 2
  • you change itemsPerPage to 100
  • now there's just 1 page, to be precise: 11 items on the first page
  • the 2nd page shows nothing

before this commit if the above situation happened, you'd just get a "no
results" page - i think it's safer to redirect to page 0 when changing
itemsPerPage to avoid the case described above

consider this case:
- there are 11 items
- itemsPerPage is 10
- so there are 2 pages
- you go to page 2
- you change itemsPerPage to 100
- now there's just 1 page, to be precise: 11 items on the first page
- the 2nd page shows nothing

before this commit if the above situation happened, you'd just get a "no
results" page - i think it's safer to redirect to page 0 when changing
itemsPerPage to avoid the case described above

M2-862
@sethidden sethidden force-pushed the M2-862-my-account-empty-after-changing-pages branch from a591c6c to 3b22ca0 Compare June 27, 2022 08:44
@Frodigo Frodigo added this to the 1.0.0-rc.10 milestone Jun 27, 2022
@sethidden sethidden merged commit 96d328e into develop Jun 28, 2022
@sethidden sethidden deleted the M2-862-my-account-empty-after-changing-pages branch June 28, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants