Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus committed Nov 10, 2020
1 parent 2d49067 commit 7d415f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/BackOffice/form-fields/GroupPicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const GroupPicker = ({
}) => {
const redStar = <span style={{ color: "red" }}>*</span>;
const allGroupsSelected = groups.indexOf("all") >= 0;
//const [allGroupsSelected, setAllGroupsSelected] = useState(false);

const handleCheckbox = (group) => {
setErrors({ ...errors, groups: false });
Expand All @@ -24,9 +23,6 @@ const GroupPicker = ({
}
} else if (group === "all" && groups.indexOf("all") === -1) {
setGroups(["all"]);
/* } else if (group === "all") {
setAllGroupsSelected(!allGroupsSelected);
setGroups(allGroupsSelected ? [] : [...availableGroups]);*/
} else if (groups.indexOf(group) >= 0) {
setGroups(groups.filter((g) => g !== group));
} else if (
Expand Down

0 comments on commit 7d415f5

Please sign in to comment.