Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel

This commit is contained in:
SachaG 2018-03-30 17:22:41 +09:00
commit 150f4107dd

View file

@ -66,9 +66,9 @@ class Form extends Component {
};
// convert SimpleSchema schema into JSON object
this.schema = convertSchema(props.collection.simpleSchema());
this.schema = convertSchema(this.getCollection().simpleSchema());
// Also store all field schemas (including nested schemas) in a flat structure
this.flatSchema = convertSchema(props.collection.simpleSchema(), true);
this.flatSchema = convertSchema(this.getCollection().simpleSchema(), true);
// the initial document passed as props
this.initialDocument = merge({}, this.props.prefilledProps, this.props.document);