Fixed problem presenting the download component in the first load of the bucket viewer

This commit is contained in:
Gutts-n 2024-01-24 11:03:08 -03:00
parent d18e3dd486
commit 26dcffc279
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---
Fixed problem presenting the download component in the first load of the bucket viewer

View File

@ -47,7 +47,7 @@ export function BucketViewer({
downloadComponent = downloadComponent ?? <></>;
const [isLoading, setIsLoading] = useState<boolean>(false);
const [showDownloadComponentOnLine, setShowDownloadComponentOnLine] = useState(0);
const [showDownloadComponentOnLine, setShowDownloadComponentOnLine] = useState(-1);
const [currentPage, setCurrentPage] = useState<number>(0);
const [lastPage, setLastPage] = useState<number>(0);
const [bucketFiles, setBucketFiles] = useState<BucketViewerData[]>([]);