Skip to content

The open alternative to Salesforce, designed for AI.

Fix search in csv import (#6045)

Félix Malfait87abc1b31dc9
diff --git a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx
index f4dbc49f0bc..55ec39cf839 100644
--- a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx
+++ b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx
@@ -66,7 +66,9 @@ export const MatchColumnSelect = ({
const handleSearchFilterChange = useCallback(
(text: string) => {
setOptions(
- initialOptions.filter((option) => option.label.includes(text)),
+ initialOptions.filter((option) =>
+ option.label.toLowerCase().includes(text.toLowerCase()),
+ ),
);
},
[initialOptions],