Shun Miyazawa 4 роки тому
батько
коміт
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(
   return useSWRImmutable(
     groupId != null ? ['/user-groups/selectable-groups'] : null,
     groupId != null ? ['/user-groups/selectable-groups'] : null,
     endpoint => apiv3Get<SelectableUserGroupsResult>(endpoint, { groupId }).then(result => result.data.selectableUserGroups),
     endpoint => apiv3Get<SelectableUserGroupsResult>(endpoint, { groupId }).then(result => result.data.selectableUserGroups),