Skip to content

Commit

Permalink
Fixed problem presenting the download component in the first load of …
Browse files Browse the repository at this point in the history
…the bucket viewer
  • Loading branch information
Gutts-n committed Jan 24, 2024
1 parent d18e3dd commit 26dcffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-horses-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---

Fixed problem presenting the download component in the first load of the bucket viewer
2 changes: 1 addition & 1 deletion packages/components/src/components/BucketViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[]>([]);
Expand Down

0 comments on commit 26dcffc

Please sign in to comment.