We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 794f21e + 99b7b69 commit 12cd584Copy full SHA for 12cd584
src/SearchInput/SearchInput.js
@@ -88,7 +88,7 @@ export class SearchInput extends Component {
88
89
// create auto complete search items
90
createAutoCompleteItems = data => {
91
- return data.length > 0 ? (
+ return data && data.length > 0 ? (
92
data.map((item, index) => {
93
let classNames = 'fd-menu__item';
94
if (index === 0) {
@@ -135,7 +135,7 @@ export class SearchInput extends Component {
135
</div>
136
137
138
- {onAutoComplete ? (
+ {data && onAutoComplete ? (
139
<div
140
className="fd-popover__body fd-popover__body--no-arrow"
141
aria-hidden={!this.state.bShowList}
0 commit comments