From 5cc43bd8b5e3a06598b0accad24ba6cf30c69928 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 8 Dec 2021 09:47:43 +0000 Subject: [PATCH] Remove unnecessary optional chaining --- packages/bbui/src/Form/Core/Picker.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte index 1af819e44a..143536a60a 100644 --- a/packages/bbui/src/Form/Core/Picker.svelte +++ b/packages/bbui/src/Form/Core/Picker.svelte @@ -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