Fixed problem presenting the download component in the first load of the bucket viewer
This commit is contained in:
5
.changeset/funny-horses-smash.md
Normal file
5
.changeset/funny-horses-smash.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@portaljs/components': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed problem presenting the download component in the first load of the bucket viewer
|
||||||
@@ -47,7 +47,7 @@ export function BucketViewer({
|
|||||||
downloadComponent = downloadComponent ?? <></>;
|
downloadComponent = downloadComponent ?? <></>;
|
||||||
|
|
||||||
const [isLoading, setIsLoading] = useState<boolean>(false);
|
const [isLoading, setIsLoading] = useState<boolean>(false);
|
||||||
const [showDownloadComponentOnLine, setShowDownloadComponentOnLine] = useState(0);
|
const [showDownloadComponentOnLine, setShowDownloadComponentOnLine] = useState(-1);
|
||||||
const [currentPage, setCurrentPage] = useState<number>(0);
|
const [currentPage, setCurrentPage] = useState<number>(0);
|
||||||
const [lastPage, setLastPage] = useState<number>(0);
|
const [lastPage, setLastPage] = useState<number>(0);
|
||||||
const [bucketFiles, setBucketFiles] = useState<BucketViewerData[]>([]);
|
const [bucketFiles, setBucketFiles] = useState<BucketViewerData[]>([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user