Skip to content

Commit

Permalink
Merge pull request #1073 from datopian/feature/search-and-pagination-…
Browse files Browse the repository at this point in the history
…for-bucket-viewer

Fixed bug on filter by startDate
  • Loading branch information
Gutts-n authored Jan 23, 2024
2 parents 2c45da6 + cf24042 commit 09d5324
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-worms-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---

Fixed filter by startDate error
2 changes: 1 addition & 1 deletion packages/components/src/components/BucketViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function BucketViewer({
useEffect(() => {
if(!filterState) return;

if(filterState.startDate && filterState.startDate) {
if (filterState.startDate && filterState.endDate) {
setFilteredData(bucketFiles.filter(({ dateProps }) =>
dateProps
?
Expand Down

1 comment on commit 09d5324

@vercel
Copy link

@vercel vercel bot commented on 09d5324 Jan 23, 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.vercel.app
storybook.portaljs.org
portaljs-storybook-datopian1.vercel.app

Please # to comment.