Not pass undefined as default value for select

[PREMIUM-72]
This commit is contained in:
Pavel Dohnal
2018-03-13 15:52:00 +00:00
parent 4469cef647
commit cd6828d19e

View File

@ -60,7 +60,7 @@ const FormFieldSelect = React.createClass({
<select
name={this.props.field.name}
id={`field_${this.props.field.name}`}
value={this.props.item[this.props.field.name]}
value={this.props.item[this.props.field.name] || ''}
onChange={this.props.onValueChange}
{...this.props.field.validation}
>