mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updated date range handling.
This commit is contained in:
parent
bfb52eb678
commit
e9b0d3f796
4 changed files with 25 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue