Added errors to filter functions

This commit is contained in:
orangemug
2020-02-16 21:25:41 +00:00
parent 1300951a29
commit ff8a8fb749
6 changed files with 70 additions and 17 deletions

View File

@@ -57,14 +57,14 @@ export default class PropertyGroup extends React.Component {
const layout = this.props.layer.layout || {}
const fieldValue = fieldName in paint ? paint[fieldName] : layout[fieldName]
const fieldType = fieldName in paint ? 'paint' : 'layout';
const errorKey = fieldType+"."+fieldName;
return <FunctionSpecField
error={errors[errorKey]}
errors={errors}
onChange={this.onPropertyChange}
key={fieldName}
fieldName={fieldName}
value={fieldValue}
fieldType={fieldType}
fieldSpec={fieldSpec}
/>
})