From ea946609c47d483d1251acfe7ee9a00bcf79748c Mon Sep 17 00:00:00 2001 From: ilong4rennes Date: Thu, 5 Dec 2024 16:51:01 -0500 Subject: [PATCH] fix get error --- admin/src/Membership/MemberBoxGroups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/Membership/MemberBoxGroups.js b/admin/src/Membership/MemberBoxGroups.js index 187a3d2d..3e1e89db 100644 --- a/admin/src/Membership/MemberBoxGroups.js +++ b/admin/src/Membership/MemberBoxGroups.js @@ -5,6 +5,7 @@ import * as _ from "underscore"; import CollectionTable from "../Components/CollectionTable"; import Collection from "../Models/Collection"; import Group from "../Models/Group"; +import { get } from "../gateway"; const filterOptions = (items, options) => { const current = new Set(items.map((i) => i.id)); @@ -27,7 +28,6 @@ function MemberBoxGroups(props) { const [selectedOption, setSelectedOption] = useState(null); useEffect(() => { - // eslint-disable-next-line no-undef get({ url: "/membership/group" }).then((data) => { const updatedOptions = data.data; setOptions(updatedOptions);