Merge pull request #1073 from datopian/feature/search-and-pagination-for-bucket-viewer

Fixed bug on filter by startDate
This commit is contained in:
Leonardo Yuri Farias 2024-01-23 16:50:37 -03:00 committed by GitHub
commit 09d5324d4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---
Fixed filter by startDate error

View File

@ -93,7 +93,7 @@ export function BucketViewer({
useEffect(() => { useEffect(() => {
if(!filterState) return; if(!filterState) return;
if(filterState.startDate && filterState.startDate) { if (filterState.startDate && filterState.endDate) {
setFilteredData(bucketFiles.filter(({ dateProps }) => setFilteredData(bucketFiles.filter(({ dateProps }) =>
dateProps dateProps
? ?