We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe we must fix the display in footer, "Showing 1 to 0 of 0 results" seems to be not good ?
Originally posted by @Jessy-BAER in #257 (comment)
The text was updated successfully, but these errors were encountered:
Hi @yoannfleurydev , in the start-ui-web/src/components/Pagination/index.tsx file, there is :
export const getPaginationInfo = ({ page = 1, pageSize = 10, totalItems = 0, }) => { const firstItemOnPage = (page - 1) * pageSize + 1; ...
at line 22. So, (1-1)*10+1 = 0+1 = 1.
Due to that, it will always show "Showing 1 to 0" at least. Am I right?
Sorry, something went wrong.
Hi @yoannfleurydev , in the start-ui-web/src/components/Pagination/index.tsx file, there is : export const getPaginationInfo = ({ page = 1, pageSize = 10, totalItems = 0, }) => { const firstItemOnPage = (page - 1) * pageSize + 1; ... at line 22. So, (1-1)*10+1 = 0+1 = 1. Due to that, it will always show "Showing 1 to 0" at least. Am I right?
That's right, the default computation will return 1. We can probably do some check to get 0 or maybe add a skeleton while data is fetching.
1
0
JeanneGrenet
Successfully merging a pull request may close this issue.
Maybe we must fix the display in footer, "Showing 1 to 0 of 0 results" seems to be not good ?
Originally posted by @Jessy-BAER in #257 (comment)
The text was updated successfully, but these errors were encountered: