Merge pull request #3177 from SergioCrisostomo/fix-3161
Fix type passed when no value is given for timerange
This commit is contained in:
commit
f4f34695fd
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@
|
|||
if (typeof val === 'string') {
|
||||
val = parser(val, format);
|
||||
} else if (type === 'timerange') {
|
||||
val = parser(val, format);
|
||||
val = parser(val, format).map(v => v || '');
|
||||
} else {
|
||||
val = val.map(date => new Date(date)); // try to parse
|
||||
val = val.map(date => isNaN(date.getTime()) ? null : date); // check if parse passed
|
||||
|
|
Loading…
Add table
Reference in a new issue