Shun Miyazawa 4 years ago
parent
commit
7dc5792185
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/stores/user-group.tsx

+ 1 - 1
packages/app/src/stores/user-group.tsx

@@ -63,7 +63,7 @@ export const useSWRxUserGroupPages = (groupId: string | undefined, limit: number
   );
 };
 
-export const useSWRxSelectableUserGroups = (groupId: string): SWRResponse<IUserGroupHasId[], Error> => {
+export const useSWRxSelectableUserGroups = (groupId: string | undefined): SWRResponse<IUserGroupHasId[], Error> => {
   return useSWRImmutable(
     groupId != null ? ['/user-groups/selectable-groups'] : null,
     endpoint => apiv3Get<SelectableUserGroupsResult>(endpoint, { groupId }).then(result => result.data.selectableUserGroups),