From be944ff21aab97603dbc6a62866dd0746b6e58dd Mon Sep 17 00:00:00 2001 From: gitdallas Date: Tue, 26 Sep 2023 15:34:00 -0500 Subject: [PATCH] cleanup commented code Signed-off-by: gitdallas --- client/src/app/components/Autocomplete.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/src/app/components/Autocomplete.tsx b/client/src/app/components/Autocomplete.tsx index ad9236e754..d507771cc9 100644 --- a/client/src/app/components/Autocomplete.tsx +++ b/client/src/app/components/Autocomplete.tsx @@ -123,9 +123,7 @@ export const Autocomplete: React.FC = ({ 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 */ @@ -139,7 +137,6 @@ export const Autocomplete: React.FC = ({ } newChipText = matchingOption; } - // setCurrentChips(new Set([...currentChips, newChipText])); onChange(Array.from(new Set([...selections, newChipText]))); setInputValue(""); setMenuIsOpen(false);