Error Tracking: Disable next button when next pagination is empty
What does this MR do and why?
Prior this commit the Next
button of the pagination was able visible
even if next page was not available (via API). Clicking on this button
raised TypeError: this.pagination.next is undefined
in the JS console.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable Error Tracking with Sentry backend pointing to
https://sentry.gitlab.net/
- Use
GitLab Inc. | tanuki-inc
because it has only 2 pages of errors - Pagination errors to the last page
- Watch
Next
being disabled🎉
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen