|
@@ -36,7 +36,7 @@ export const useSWRxChildUserGroupList = (
|
|
|
|
|
|
|
|
export const useSWRxUserGroupRelations = (groupId: string): SWRResponse<IUserGroupRelationHasId[], Error> => {
|
|
export const useSWRxUserGroupRelations = (groupId: string): SWRResponse<IUserGroupRelationHasId[], Error> => {
|
|
|
return useSWRImmutable(
|
|
return useSWRImmutable(
|
|
|
- groupId != null ? [`user-groups/${groupId}/user-group-relations`] : null,
|
|
|
|
|
|
|
+ groupId != null ? [`/user-groups/${groupId}/user-group-relations`] : null,
|
|
|
endpoint => apiv3Get<UserGroupRelationListResult>(endpoint).then(result => result.data.userGroupRelations),
|
|
endpoint => apiv3Get<UserGroupRelationListResult>(endpoint).then(result => result.data.userGroupRelations),
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|