mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
More accurate variable naming
schema.schema is awkward
This commit is contained in:
parent
ab874a0c8d
commit
3835291cdf
@ -190,19 +190,19 @@ export class FormBuilderComponent extends SilverStripeComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const schema = this.props.schemas[this.props.schemaUrl];
|
const formSchema = this.props.schemas[this.props.schemaUrl];
|
||||||
|
|
||||||
// If the response from fetching the initial data
|
// If the response from fetching the initial data
|
||||||
// hasn't come back yet, don't render anything.
|
// hasn't come back yet, don't render anything.
|
||||||
if (!schema) {
|
if (!formSchema) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const formProps = {
|
const formProps = {
|
||||||
actions: schema.schema.actions,
|
actions: formSchema.schema.actions,
|
||||||
attributes: schema.schema.attributes,
|
attributes: formSchema.schema.attributes,
|
||||||
data: schema.schema.data,
|
data: formSchema.schema.data,
|
||||||
fields: schema.schema.fields,
|
fields: formSchema.schema.fields,
|
||||||
mapFieldsToComponents: this.mapFieldsToComponents,
|
mapFieldsToComponents: this.mapFieldsToComponents,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user