From 3b4c8fe827e55b4c54d7ca57672438d26c745754 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:44:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jsx/src/components/GroupEdit/GroupEdit.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jsx/src/components/GroupEdit/GroupEdit.jsx b/jsx/src/components/GroupEdit/GroupEdit.jsx index 71cf8425..7ae8e38b 100644 --- a/jsx/src/components/GroupEdit/GroupEdit.jsx +++ b/jsx/src/components/GroupEdit/GroupEdit.jsx @@ -5,8 +5,6 @@ import PropTypes from "prop-types"; import GroupSelect from "../GroupSelect/GroupSelect"; import DynamicTable from "../DynamicTable/DynamicTable"; - - const GroupEdit = (props) => { var [selected, setSelected] = useState([]), [changed, setChanged] = useState(false), @@ -14,7 +12,7 @@ const GroupEdit = (props) => { limit = useSelector((state) => state.limit); var dispatch = useDispatch(); - const hasDuplicates = a => a.filter((e, i) => a.indexOf(e) != i).length > 0 + const hasDuplicates = (a) => a.filter((e, i) => a.indexOf(e) != i).length > 0; const dispatchPageUpdate = (data, page) => { dispatch({ type: "GROUPS_PAGE",