|
|
|
@ -63,9 +63,9 @@ |
|
|
|
const getFilteredOptions = (options, term, getLabel) => { |
|
|
|
if (autocomplete && term) { |
|
|
|
const lowerCaseTerm = term.toLowerCase() |
|
|
|
return options.filter(option => |
|
|
|
getLabel(option)?.toLowerCase().includes(lowerCaseTerm) |
|
|
|
) |
|
|
|
return options.filter(option => { |
|
|
|
return `${getLabel(option)}`?.toLowerCase().includes(lowerCaseTerm) |
|
|
|
}) |
|
|
|
} |
|
|
|
return options |
|
|
|
} |
|
|
|
|