From b8460f13b10e5300d2de83c42c27e5425690dfba Mon Sep 17 00:00:00 2001 From: Johnathan Martin Date: Wed, 26 Jun 2019 13:20:07 -0700 Subject: [PATCH] slightly clearer parameter name --- src/components/editor/property/PropertyComponent.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/editor/property/PropertyComponent.jsx b/src/components/editor/property/PropertyComponent.jsx index 2c4137555..4127e2511 100644 --- a/src/components/editor/property/PropertyComponent.jsx +++ b/src/components/editor/property/PropertyComponent.jsx @@ -18,7 +18,7 @@ export class PropertyComponent extends Component { } } - inputComponentType = (property) => { + inputComponentType = (propertyTemplate) => { let config // We do not support mixed list and lookups, so we will just go with the value of the first config item found @@ -30,7 +30,7 @@ export class PropertyComponent extends Component { const reduxPath = Object.assign([], this.props.reduxPath) - reduxPath.push(property.propertyURI) + reduxPath.push(propertyTemplate.propertyURI) const keyId = shortid.generate() switch (config) { @@ -40,19 +40,19 @@ export class PropertyComponent extends Component { case 'list': return () default: - switch (property.type) { + switch (propertyTemplate.type) { case 'literal': return () case 'resource': return () default: - console.error(`Unknown property type (component=${config}, type=${property.type})`) + console.error(`Unknown propertyTemplate type (component=${config}, type=${propertyTemplate.type})`) } }