Commit 0bb261db authored by Boris Kocherov's avatar Boris Kocherov

null values supported, but not rendered properly yet.

parent 0fa703bd
......@@ -16,6 +16,9 @@
}
function getDocumentType(doc) {
if (doc === null) {
return "null";
}
if (doc instanceof Array) {
return "array";
}
......@@ -729,7 +732,7 @@
input = render_boolean(json_field, default_value);
}
if (!input && ["string", "integer", "number"].indexOf(type) >= 0) {
if (!input && ["string", "integer", "number", "null"].indexOf(type) >= 0) {
if (json_field.contentMediaType === "text/plain") {
input = render_textarea(default_value, "string");
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment