Skip to content

Commit

Permalink
Merge pull request #63 from DDD-Community/feat/#46
Browse files Browse the repository at this point in the history
[feat/#46] 빌드 오류 수정
  • Loading branch information
lkhoony authored Sep 14, 2024
2 parents 3427853 + d78b82e commit 80aa6dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const getGroups = async (groupsReq: groupsReq): Promise<groupsRes> => {
}
}

export const getGroup = async (id: number): Promise<group> => {
export const getGroup = async (id: number | undefined): Promise<group> => {
try {
const res = await axiosInstance.get(`/groups/${id}`)
return res.data.data
Expand Down
2 changes: 1 addition & 1 deletion src/components/Crew/CrewList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const CrewList = (): ReactElement => {
}

const createSortList = (): JSX.Element[] => {
return SORT_LIST.map((s, i) => (
return SORT_LIST.map((s) => (
// eslint-disable-next-line max-len
<div
key={`sort-list-${s.sort}`}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGroupMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useGetGroups = (params: groupsReq): UseQueryResult<groupsRes, Error
return useQuery<groupsRes, Error>({ queryKey: ["groups", params], queryFn: () => getGroups(params) })
}

export const useGetGroup = (id: number): UseQueryResult<group, Error> => {
export const useGetGroup = (id: number | undefined): UseQueryResult<group, Error> => {
// eslint-disable-next-line max-len
return useQuery<group, Error>({ queryKey: ["group", id], queryFn: () => getGroup(id) })
}
Expand Down

0 comments on commit 80aa6dd

Please sign in to comment.