Fix search in csv import (#6045)

A mini quality of life improvements, the search was case-sensitive which
was frustrating
This commit is contained in:
Félix Malfait
2024-06-26 17:32:25 +02:00
committed by GitHub
parent cd6775da32
commit 87abc1b31d

View File

@ -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],