Skip to content

Commit

Permalink
Merge pull request #1075 from datopian/fix/download-button-presented-…
Browse files Browse the repository at this point in the history
…on-start-of-bucket-viewer

Fixed problem presenting the download component in the first load of …
  • Loading branch information
Gutts-n committed Jan 24, 2024
2 parents d18e3dd + 26dcffc commit a7e90b6
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

1 comment on commit a7e90b6

@vercel
Copy link

@vercel vercel bot commented on a7e90b6 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

portaljs-storybook – ./packages/components/

portaljs-storybook-git-main-datopian1.vercel.app
portaljs-storybook-datopian1.vercel.app
portaljs-storybook.vercel.app
storybook.portaljs.org

Please sign in to comment.