Remove unnecessary optional chaining

This commit is contained in:
Andrew Kingston 2021-12-08 09:47:43 +00:00
parent a90cfc3e73
commit b8b66b0c07
1 changed files with 1 additions and 1 deletions

View File

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