From 87abc1b31dc97953b715fdd6c905fa5f0c3a5e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Wed, 26 Jun 2024 17:32:25 +0200 Subject: [PATCH] Fix search in csv import (#6045) A mini quality of life improvements, the search was case-sensitive which was frustrating --- .../spreadsheet-import/components/MatchColumnSelect.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 f4dbc49f0..55ec39cf8 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],