Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{filteredData.map((datum, i) => {
const resultId = getResultId(suggestionsId, i);
let optionProps: ListboxOptionProps | undefined;
if (isListboxOptionProps(datum)) {
optionProps = omit(datum, [labelKey, valueKey]);
}
return (
<option selected="{false}" id="{resultId}"> handleAutoComplete(i)}
>
{getResultLabel(datum, labelKey, value)}
</option>