From cf24042a910567e98eeb75ade42ce0149bdb62d1 Mon Sep 17 00:00:00 2001 From: Gutts-n Date: Tue, 23 Jan 2024 16:49:15 -0300 Subject: [PATCH] Fixed bug on filter by startDate --- .changeset/thin-worms-build.md | 5 +++++ packages/components/src/components/BucketViewer.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thin-worms-build.md diff --git a/.changeset/thin-worms-build.md b/.changeset/thin-worms-build.md new file mode 100644 index 000000000..8b1b63e00 --- /dev/null +++ b/.changeset/thin-worms-build.md @@ -0,0 +1,5 @@ +--- +'@portaljs/components': patch +--- + +Fixed filter by startDate error diff --git a/packages/components/src/components/BucketViewer.tsx b/packages/components/src/components/BucketViewer.tsx index 3f5520086..600db1e1a 100644 --- a/packages/components/src/components/BucketViewer.tsx +++ b/packages/components/src/components/BucketViewer.tsx @@ -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 ?