Added error boundary. Fixed #1976.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user