Fix failing test

This commit is contained in:
Kyle Shockey
2017-11-29 19:21:20 -06:00
parent 8d1d15ca4a
commit 5224932cf9
3 changed files with 5 additions and 5 deletions

View File

@@ -189,8 +189,8 @@ export class JsonSchema_boolean extends Component {
return (<Select className={ errors.length ? "invalid" : ""}
title={ errors.length ? errors : ""}
value={ String(value) }
allowedValues={ fromJS(["true", "false"]) }
allowEmptyValue={ true }
allowedValues={ fromJS(schema.enum || ["true", "false"]) }
allowEmptyValue={ !this.props.required }
onChange={ this.onEnumChange }/>)
}
}