()
| 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) { |
no test coverage detected