Skip to content

Commit

Permalink
cleanup commented code
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <[email protected]>
  • Loading branch information
gitdallas committed Sep 26, 2023
1 parent a949016 commit be944ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/src/app/components/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ export const Autocomplete: React.FC<IAutocompleteProps> = ({
const deleteChip = (chipToDelete: string) => {
const newChips = new Set(selections);
newChips.delete(chipToDelete);
// newChips.delete(chipToDelete);
onChange(Array.from(newChips));
// setCurrentChips(newChips);
};

/** add the given string as a chip in the chip group and clear the input */
Expand All @@ -139,7 +137,6 @@ export const Autocomplete: React.FC<IAutocompleteProps> = ({
}
newChipText = matchingOption;
}
// setCurrentChips(new Set([...currentChips, newChipText]));
onChange(Array.from(new Set([...selections, newChipText])));
setInputValue("");
setMenuIsOpen(false);
Expand Down

0 comments on commit be944ff

Please sign in to comment.