Skip to content

Commit 437efb4

Browse files
committed
Fix String 'undefined' on undefined
1 parent f1896c8 commit 437efb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modifiers/type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function modify(data, model) {
1717

1818
switch (model.type.toLowerCase()) {
1919
case 'string':
20-
parsed = String(data);
20+
parsed = (data) ? String(data) : '';
2121
break;
2222
case 'number':
2323
if (!isNaN(Number(data))) {

0 commit comments

Comments
 (0)