Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed May 11, 2020
1 parent bb03b50 commit 14667f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const FilterPopover = ({
const [items, setItems] = useState<string[]>([]);

useEffect(() => {
// Merge incoming items with selected items, to enable un-selection
// Merge incoming items with selected items, to enable deselection

const mItems = selectedItems.concat(allItems ?? []);
const newItems = mItems.filter((item, index) => mItems.indexOf(item) === index);
Expand Down

0 comments on commit 14667f2

Please sign in to comment.