Skip to content

Commit

Permalink
remove unneeded check
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Bolton <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Apr 25, 2024
1 parent d736fc3 commit 8585dc1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ export const GroupedAutocomplete: React.FC<IGroupedAutocompleteProps> = ({

const filteredOptions = useMemo(() => {
return options.filter((option) => {
const isOptionSelected = selections.some((selection) => {
const isSelectedById = selection.uniqueId === option.uniqueId;
const isSelectedByGroup = selection.group === option.group;
return isSelectedById && isSelectedByGroup;
});
const isOptionSelected = selections.some(
(selection) => selection.uniqueId === option.uniqueId
);

const isNameMatch = toString(option.name)
.toLowerCase()
Expand Down

0 comments on commit 8585dc1

Please sign in to comment.