Warning Error for Key Undefined
Closed this issue · 2 comments
djaffer commented
Getting warning in the console for key to be undefined.
<ReactSearchAutocomplete
items={items}
fuseOptions={{
keys: ['name'],
threshold: 0.2,
ignoreLocation: true,
findAllMatches: true,
includeMatches: true,
}}
resultStringKeyName="message"
onSelect={handleOnSelect}
onClear={handleOnClear}
autoFocus
showIcon={false}
placeholder="Search"
/>
Louis-Ramsey commented
please how did you solve this @djaffer
djaffer commented
@Louis-Ramsey do a filter on items to ensure no undefined values are there before being sent as props.