Repository navigation
fix: correct reversed comparison in admin organisations table pagination - #2842
Conversation
Bug #5 from Faultmark scan (issue documenso#2829): the visibility check was 1 > table.getPageCount() which is only true when there are zero pages. Changed to table.getPageCount() > 1 so pagination shows when there are multiple pages. Signed-off-by: Abdulazez A. <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey there, it looks like you haven't accepted our contributor license agreement yet. In order for us to accept your pull request we ask that you please fill out the CLA: https://documen.so/cla |
Summary
Fixes bug #5 from the Faultmark scan (issue #2829): the admin organisations table pagination was permanently hidden because the comparison was reversed.
Root cause
Line 241 had
1 > table.getPageCount()— the literal1andgetPageCount()were swapped.1 > getPageCount()is only true when there are zero pages, which never happens in practice. The pagination bar was never shown.Fix
Changed to
table.getPageCount() > 1— pagination now correctly shows when there are multiple pages.Partially addresses #2829