Skip to content

Commit

Permalink
Use utility function to convert JSON string value to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Jun 17, 2019
1 parent 12e102c commit dd8cd25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/editor/property/InputLiteral.jsx
Expand Up @@ -119,13 +119,13 @@ export class InputLiteral extends Component {
this.inputLiteralRef.current.focus()
}

/**
* @return {bool} true if the field should be marked as required (e.g. not all obligations met)
*/
checkMandatoryRepeatable = () => booleanPropertyFromTemplate(this.props.propertyTemplate, 'mandatory', false)
&& this.props.formData.errors
&& this.props.formData.errors.length !== 0

/**
* @return {bool} true if the field should be marked as required (e.g. not all obligations met)
*/
checkMandatoryRepeatable = () => booleanPropertyFromTemplate(this.props.propertyTemplate, 'mandatory', false)
&& this.props.formData.errors
&& this.props.formData.errors.length !== 0

dispModal = (content, id) => (
<Modal show={this.state.show[id]} onHide={this.handleClose}>
Expand Down

0 comments on commit dd8cd25

Please sign in to comment.