Commit 08481383 authored by Boris Kocherov's avatar Boris Kocherov

stringify document value if type in schema changed from object to string

parent fcf3a600
......@@ -685,6 +685,9 @@
} else {
input = document.createElement("input");
if (default_value !== undefined) {
if (["object", "array"].indexOf(getDocumentType(default_value)) >= 0) {
default_value = JSON.stringify(default_value);
}
input.value = 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