From 700cc9d2edb8db5e28c8322a3e7d0ae2f154a689 Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 20 Mar 2024 11:07:30 +0100 Subject: [PATCH] Fix --- .../src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx index e815e5ad83476..746a928ad5427 100644 --- a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx +++ b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx @@ -61,14 +61,13 @@ export function LemonInputSelect({ const res: LemonInputSelectOption[] = [] const customValues = [...values] - // Finally we show the input value if custom values are allowed and it's not in the list + // We show the input value if custom values are allowed and it's not in the list if (allowCustomValues && inputValue && !values.includes(inputValue)) { customValues.unshift(inputValue) } options.forEach((option) => { // Remove from the custom values list if it's in the options - if (customValues.includes(option.key)) { customValues.splice(customValues.indexOf(option.key), 1) }