Skip to content

Commit

Permalink
Fixed #347
Browse files Browse the repository at this point in the history
  • Loading branch information
Merve7 committed Mar 15, 2018
1 parent 3aa231e commit a21f38f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,14 @@ export class AutoComplete extends Component {
}

formatValue(value) {
if(value)
if(value) {
if (this.props.field) {
const resolvedFieldData = ObjectUtils.resolveFieldData(value, this.props.field);
return resolvedFieldData !== null ? resolvedFieldData : value;
return resolvedFieldData !== null && resolvedFieldData !== undefined ? resolvedFieldData : value;
}
else
return value;
}
else
return '';
}
Expand Down

0 comments on commit a21f38f

Please sign in to comment.