Shun Miyazawa 4 лет назад
Родитель
Сommit
7dc5792185
1 измененных файлов с 1 добавлено и 1 удалено
  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),