diff --git a/src/Components/Files/FileUpload.tsx b/src/Components/Files/FileUpload.tsx index d827391f650..ee92c688a2b 100644 --- a/src/Components/Files/FileUpload.tsx +++ b/src/Components/Files/FileUpload.tsx @@ -364,7 +364,7 @@ export const FileUpload = (props: FileUploadProps) => { )} - {(fileQuery?.data?.results || []).length > RESULTS_PER_PAGE_LIMIT && ( + {(fileQuery?.data?.count ?? 0) > RESULTS_PER_PAGE_LIMIT && (