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

Function fetchGroups

web/src/pages/Channel/EditTagModal.js:124–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 };
123
124 const fetchGroups = async () => {
125 try {
126 let res = await API.get(`/api/group/`);
127 if (res === undefined) {
128 return;
129 }
130 setGroupOptions(
131 res.data.data.map((group) => ({
132 label: group,
133 value: group,
134 })),
135 );
136 } catch (error) {
137 showError(error.message);
138 }
139 };
140
141 const handleSave = async (values) => {
142 setLoading(true);

Callers 1

EditTagModal.jsFile · 0.70

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected