mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Added error boundary. Fixed #1976.
This commit is contained in:
parent
d73def80c7
commit
3f1ed750f0
7 changed files with 97 additions and 20 deletions
|
|
@ -53,7 +53,7 @@ export function parseDateRange(value, locale = 'en-US') {
|
|||
|
||||
const match = value.match(/^(?<num>[0-9-]+)(?<unit>hour|day|week|month|year)$/);
|
||||
|
||||
if (!match) return;
|
||||
if (!match) return {};
|
||||
|
||||
const { num, unit } = match.groups;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue