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

Function fetchGroups

web/src/components/table/ChannelsTable.js:1391–1406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1389 };
1390
1391 const fetchGroups = async () => {
1392 try {
1393 let res = await API.get(`/api/group/`);
1394 if (res === undefined) {
1395 return;
1396 }
1397 setGroupOptions(
1398 res.data.data.map((group) => ({
1399 label: group,
1400 value: group,
1401 })),
1402 );
1403 } catch (error) {
1404 showError(error.message);
1405 }
1406 };
1407
1408 const submitTagEdit = async (type, data) => {
1409 switch (type) {

Callers 2

UsersTable.jsFile · 0.70
ChannelsTable.jsFile · 0.70

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected