We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68b813c + 7baa42c commit 4c7061bCopy full SHA for 4c7061b
src/components/Search/SearchMultipleSelectionPicker.tsx
@@ -57,7 +57,7 @@ function SearchMultipleSelectionPicker({items, initiallySelectedItems, pickerTit
57
value: item.value,
58
}));
59
const remainingItemsSection = items
60
- .filter((item) => selectedItems.some((selectedItem) => selectedItem.value === item.value) === false && item?.name.toLowerCase().includes(debouncedSearchTerm?.toLowerCase()))
+ .filter((item) => selectedItems.some((selectedItem) => selectedItem.value === item.value) === false && item?.name?.toLowerCase().includes(debouncedSearchTerm?.toLowerCase()))
61
.sort((a, b) => sortOptionsWithEmptyValue(a, b))
62
.map((item) => ({
63
text: item.name,
0 commit comments