Skip to content
New issue

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

Fixed pagination issue in file uploads #8596

Closed
wants to merge 1 commit into from

Conversation

khavinshankar
Copy link
Member

Proposed Changes

  • Fixed pagination issue in file uploads

@khavinshankar khavinshankar requested a review from a team as a code owner September 23, 2024 12:22
Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 201e451
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/66f15d6bcbbc8600085dafec
😎 Deploy Preview https://deploy-preview-8596--care-ohc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -364,7 +364,7 @@ export const FileUpload = (props: FileUploadProps) => {
</div>
)}
</div>
{(fileQuery?.data?.results || []).length > RESULTS_PER_PAGE_LIMIT && (
{(fileQuery?.data?.count ?? 0) > RESULTS_PER_PAGE_LIMIT && (
<div className="mt-4 flex w-full justify-center">
<Pagination
cPage={currentPage}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The total count in the data prop also needs to be changed

@rithviknishad
Copy link
Member

Already fixed in #8597 btw

@khavinshankar khavinshankar deleted the fileupload-pagination branch December 1, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants