Skip to content

Commit

Permalink
Fixed bug on filter by startDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutts-n committed Jan 23, 2024
1 parent 27c99ad commit cf24042
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

0 comments on commit cf24042

Please # to comment.