docs: fix(pagination): show last page number when current + 1 equals pageCount#6759
Conversation
|
✅ Deploy Preview for refine-doc-live-previews ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hey @BessonovMax, looks great, thanks for improving Refine 🚀 |
Replaced all instances of current + 1 < pageCount with current + 1 <= pageCount to correctly display last page.
|
Hey, @alicanerdurmaz, thanks for the feedback!😊 |

PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
The last page number is not shown when
current + 1 === pageCountdue to a strict<comparison.What is the new behavior?
The condition has been updated to use
<=to ensure the last page number is displayed properly.