Skip to content

Commit a331908

Browse files
committed
Merge branch 'pr/482'
Closes #482
2 parents b131f3e + 0fe72a2 commit a331908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editors/string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
1616
return;
1717
}
1818

19-
if(value === null) value = "";
19+
if(value === null || typeof value === 'undefined') value = "";
2020
else if(typeof value === "object") value = JSON.stringify(value);
2121
else if(typeof value !== "string") value = ""+value;
2222

0 commit comments

Comments
 (0)