MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / fetchGroups

Function fetchGroups

web/src/pages/Channel/EditChannel.js:338–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 };
337
338 const fetchGroups = async () => {
339 try {
340 let res = await API.get(`/api/group/`);
341 if (res === undefined) {
342 return;
343 }
344 setGroupOptions(
345 res.data.data.map((group) => ({
346 label: group,
347 value: group,
348 })),
349 );
350 } catch (error) {
351 showError(error.message);
352 }
353 };
354
355 useEffect(() => {
356 const modelMap = new Map();

Callers 1

EditChannel.jsFile · 0.70

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected