mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-16 05:04:18 +00:00
just ensure we have a value when creating date range objects w/ burnettk
This commit is contained in:
parent
4e6ba9eb9d
commit
78bffc8459
@ -86,8 +86,7 @@ export default function DateRangePickerWidget({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let dateValue: (Date | null)[] | null = value;
|
let dateValue: (Date | null)[] | null = value;
|
||||||
const dateRegex = new RegExp(DATE_RANGE_DELIMITER);
|
if (value) {
|
||||||
if (value && dateRegex.test(value)) {
|
|
||||||
const [startDateString, endDateString] = value.split(DATE_RANGE_DELIMITER);
|
const [startDateString, endDateString] = value.split(DATE_RANGE_DELIMITER);
|
||||||
let startDate = null;
|
let startDate = null;
|
||||||
let endDate = null;
|
let endDate = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user