Fixed bug that definitions where not found

This commit is contained in:
Itay Mizeretz 2017-09-18 18:35:33 +03:00
parent 8198717e5a
commit addf9f0b4a
1 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,8 @@ class ConfigurePageComponent extends React.Component {
};
render() {
let displayedSchema = this.state.schema["properties"][this.state.selectedSection];
displayedSchema["definitions"] = this.state.schema["definitions"];
return (
<Col xs={8}>
<h1 className="page-title">Monkey Configuration</h1>
@ -68,7 +70,7 @@ class ConfigurePageComponent extends React.Component {
</Nav>
{ this.state.selectedSection ?
<Form schema={this.state.schema.properties[this.state.selectedSection]}
<Form schema={displayedSchema}
formData={this.state.configuration}
onSubmit={this.onSubmit}/>
: ''}