Skip to content

Commit

Permalink
fix(sezione-ricerca-enti): fix ricerca progetto dropdown 20241031
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-tocci-dxc committed Oct 31, 2024
1 parent c58006e commit fdb7986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const DropdownFilter: React.FC<DropdownFilterI> = (props) => {
if (searchValue) {
const newOptions: FilterI[] =
options?.filter((opt) =>
opt.label.toLowerCase().includes(searchValue.toLowerCase())
opt.label?.toLowerCase().includes(searchValue?.toLowerCase() || '')
) || [];
setFilteredOptions(newOptions);
} else if (searchValue === '' || !open) {
Expand Down

0 comments on commit fdb7986

Please sign in to comment.