Added error boundary. Fixed #1976.
This commit is contained in:
1 parent
d73def80c7
commit
3f1ed750f0
7 files changed
+97
-20
No files matched your search
+1
-1
@@ -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