Merge pull request #1075 from datopian/fix/download-button-presented-on-start-of-bucket-viewer

Fixed problem presenting the download component in the first load of …
This commit is contained in:
Leonardo Yuri Farias 2024-01-24 11:05:18 -03:00 committed by GitHub
commit a7e90b64af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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[]>([]);