Skip to content

Commit

Permalink
Merge pull request #21 from ilong4rennes/fix-memberboxgroup
Browse files Browse the repository at this point in the history
fix get error
  • Loading branch information
ilong4rennes authored Dec 5, 2024
2 parents 9836d0a + ea94660 commit 4e7aa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/Membership/MemberBoxGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 4e7aa3e

Please sign in to comment.