Updated date range handling.
This commit is contained in:
1 parent
bfb52eb678
commit
e9b0d3f796
4 files changed
+25
-15
No files matched your search
@@ -65,7 +65,7 @@ export function DateFilter({
|
||||
].filter(n => n);
|
||||
|
||||
const renderValue = value => {
|
||||
return value === 'custom' ? (
|
||||
return value.startsWith('range') ? (
|
||||
<CustomRange startDate={startDate} endDate={endDate} onClick={() => handleChange('custom')} />
|
||||
) : (
|
||||
options.find(e => e.value === value).label
|
||||
|
||||
Reference in new issue
Block a user