From 1843705c9696be83de9e720b327684c9ae8635f7 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 23 Sep 2024 17:45:56 +0530 Subject: [PATCH] Fixes file upload missing pagination component --- src/Components/Files/FileUpload.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Files/FileUpload.tsx b/src/Components/Files/FileUpload.tsx index 2e3d6ea58b4..f4e4cbe6185 100644 --- a/src/Components/Files/FileUpload.tsx +++ b/src/Components/Files/FileUpload.tsx @@ -364,12 +364,12 @@ export const FileUpload = (props: FileUploadProps) => { )} - {(fileQuery?.data?.results || []).length > RESULTS_PER_PAGE_LIMIT && ( + {(fileQuery?.data?.count ?? 0) > RESULTS_PER_PAGE_LIMIT && (