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() {
|
||||
const schema = this.props.schemas[this.props.schemaUrl];
|
||||
const formSchema = this.props.schemas[this.props.schemaUrl];
|
||||
|
||||
// If the response from fetching the initial data
|
||||
// hasn't come back yet, don't render anything.
|
||||
if (!schema) {
|
||||
if (!formSchema) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const formProps = {
|
||||
actions: schema.schema.actions,
|
||||
attributes: schema.schema.attributes,
|
||||
data: schema.schema.data,
|
||||
fields: schema.schema.fields,
|
||||
actions: formSchema.schema.actions,
|
||||
attributes: formSchema.schema.attributes,
|
||||
data: formSchema.schema.data,
|
||||
fields: formSchema.schema.fields,
|
||||
mapFieldsToComponents: this.mapFieldsToComponents,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user