forked from p34709852/monkey
Fixed bug that definitions where not found
This commit is contained in:
parent
8198717e5a
commit
addf9f0b4a
|
@ -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}/>
|
||||
: ''}
|
||||
|
|
Loading…
Reference in New Issue