Commit 306ead65 authored by Boris Kocherov's avatar Boris Kocherov

fix notify changes after render() without edit if document undefined

parent 34b8296f
...@@ -806,6 +806,7 @@ ...@@ -806,6 +806,7 @@
type = json_field.type[0]; type = json_field.type[0];
} }
if (["object", "array"].indexOf(type) >= 0 && if (["object", "array"].indexOf(type) >= 0 &&
!(path !== "" && default_value === undefined) &&
getDocumentType(default_value) !== type) { getDocumentType(default_value) !== type) {
if (gadget.props.saveOrigValue) { if (gadget.props.saveOrigValue) {
// XXX is not useful for user // XXX is not useful for user
......
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