Repository navigation
fix(fuselage): handle empty pagination state - #42982
RuhaaBhalerao wants to merge 1 commit into
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
WalkthroughPagination now displays a start value of zero for empty results. It disables previous and next navigation when no pages exist. Tests cover empty results, page boundaries, and page advancement. ChangesPagination behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|

Proposed changes
Showing results 0 - 0 of 0for empty result sets.Issue(s)
Fixes an empty-state bug in the Fuselage Pagination component. When
count = 0, the Next button was enabled and clicking it could callonSetCurrent(25). The results label also displayedShowing results 1 - 0 of 0.No linked issue identified.
Steps to test or reproduce
yarn workspace "@rocket.chat/fuselage" test Pagination.spec.tsx.count={0}.Showing results 0 - 0 of 0.onSetCurrent.Further comments
Validation completed:
git diff --check: passed.Summary by CodeRabbit
Bug Fixes
Tests