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:
@ -66,7 +66,9 @@ export const MatchColumnSelect = ({
|
|||||||
const handleSearchFilterChange = useCallback(
|
const handleSearchFilterChange = useCallback(
|
||||||
(text: string) => {
|
(text: string) => {
|
||||||
setOptions(
|
setOptions(
|
||||||
initialOptions.filter((option) => option.label.includes(text)),
|
initialOptions.filter((option) =>
|
||||||
|
option.label.toLowerCase().includes(text.toLowerCase()),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
[initialOptions],
|
[initialOptions],
|
||||||
|
|||||||
Reference in New Issue
Block a user