mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
This commit is contained in:
commit
150f4107dd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue