From a21f38f02d0d7c991c9b98e0c3093d0ab7c5be98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Merve=20=C3=96z=C3=A7if=C3=A7i?= Date: Thu, 15 Mar 2018 09:26:19 +0300 Subject: [PATCH] Fixed #347 --- src/components/autocomplete/AutoComplete.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/autocomplete/AutoComplete.js b/src/components/autocomplete/AutoComplete.js index fa4759b858..ddd8e03dc2 100644 --- a/src/components/autocomplete/AutoComplete.js +++ b/src/components/autocomplete/AutoComplete.js @@ -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 ''; }