Remove unnecessary optional chaining
This commit is contained in:
parent
a90cfc3e73
commit
b8b66b0c07
|
@ -64,7 +64,7 @@
|
|||
if (autocomplete && term) {
|
||||
const lowerCaseTerm = term.toLowerCase()
|
||||
return options.filter(option => {
|
||||
return `${getLabel(option)}`?.toLowerCase().includes(lowerCaseTerm)
|
||||
return `${getLabel(option)}`.toLowerCase().includes(lowerCaseTerm)
|
||||
})
|
||||
}
|
||||
return options
|
||||
|
|
Loading…
Reference in New Issue