Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Aug 10, 2021
1 parent 60c9d56 commit 606555f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ export const OptionsListInner = ({ input, fetchData }: OptionsListProps) => {
const newAvailableOptions = toggleAvailableOptions([index], availableOptions, !toggleOff);
setAvailableOptions(newAvailableOptions);

if (toggleOff) selectedOptions.current.delete(item.label);
else selectedOptions.current.add(item.label);
if (toggleOff) {
selectedOptions.current.delete(item.label);
} else {
selectedOptions.current.add(item.label);
}
},
[availableOptions]
);
Expand Down Expand Up @@ -140,7 +143,6 @@ export const OptionsListInner = ({ input, fetchData }: OptionsListProps) => {
})}
>
<EuiPopover
id="popoverExampleMultiSelect"
button={button}
isOpen={isPopoverOpen}
className="optionsList--popoverOverride"
Expand Down

0 comments on commit 606555f

Please sign in to comment.