@ -87,7 +87,9 @@ export const ObjectFilterDropdownOptionSelect = () => {
|
||||
};
|
||||
|
||||
const optionsInDropdown = selectableOptions?.filter((option) =>
|
||||
option.label.toLowerCase().includes(objectFilterDropdownSearchInput),
|
||||
option.label
|
||||
.toLowerCase()
|
||||
.includes(objectFilterDropdownSearchInput.toLowerCase()),
|
||||
);
|
||||
|
||||
const showNoResult = optionsInDropdown?.length === 0;
|
||||
|
||||
@ -34,7 +34,10 @@ export const SelectFieldInput = ({
|
||||
);
|
||||
const optionsToSelect =
|
||||
fieldDefinition.metadata.options.filter((option) => {
|
||||
return option.value !== fieldValue && option.label.includes(searchFilter);
|
||||
return (
|
||||
option.value !== fieldValue &&
|
||||
option.label.toLowerCase().includes(searchFilter.toLowerCase())
|
||||
);
|
||||
}) || [];
|
||||
const optionsInDropDown = selectedOption
|
||||
? [selectedOption, ...optionsToSelect]
|
||||
|
||||
Reference in New Issue
Block a user