1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Remove unnecessary optional chaining

This commit is contained in:
Andrew Kingston 2021-12-08 09:47:43 +00:00
parent a90cfc3e73
commit b8b66b0c07

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