Skip to content

Commit 39ca8ff

Browse files
author
Ari Bouius
committed
Fix date field coercion for empty values
1 parent 349ba1c commit 39ca8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function coerceValue(val, type) {
151151
case 'float':
152152
return val ? parseFloat(val, 10) : val
153153
case 'date':
154-
return new Date(val)
154+
return val ? new Date(val) : val
155155
case 'boolean':
156156
return !!val
157157
default:

0 commit comments

Comments
 (0)