Added error boundary. Fixed #1976.

This commit is contained in:
Mike Cao 2023-04-25 14:41:54 -07:00
parent d73def80c7
commit 3f1ed750f0
7 changed files with 97 additions and 20 deletions

View file

@ -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;