mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed bug in global date range setting.
This commit is contained in:
parent
9eca86a4fc
commit
7d25fd6876
2 changed files with 12 additions and 5 deletions
|
|
@ -30,7 +30,8 @@ export default function ProfileSettings() {
|
|||
}
|
||||
|
||||
function handleDateChange(values) {
|
||||
setItem(`umami.date-range`, values);
|
||||
const { value } = values;
|
||||
setItem(`umami.date-range`, value === 'custom' ? values : value);
|
||||
dispatch(setDateRange(0, values));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue