Remove unnecessary optional chaining

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

View File

@ -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