Commit 4603653d authored by Boris Kocherov's avatar Boris Kocherov

fix type detection for json_document === false

parent fa45756e
......@@ -638,7 +638,7 @@
if (getDocumentType(json_field.type) === "string") {
type = json_field.type;
} // else json_field.type is array so we use type
if (type === undefined && default_value) {
if (type === undefined && default_value !== undefined) {
type = getDocumentType(default_value);
}
......
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