Skip to content

Commit

Permalink
Merge pull request #208 from prgrms-fe-devcourse/fix/deploy-error
Browse files Browse the repository at this point in the history
🐛fix: 사용하지 않는 변수로 인한 배포오류 수정
  • Loading branch information
kimyou1102 authored May 16, 2024
2 parents 37a64c9 + 0d67ab9 commit 5853889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/api/useAuthorPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function useAuthorPost(COUNT: number) {
queryKey: ['infiniteAuthorPost', userId, COUNT],
queryFn: getAuthorPost,
initialPageParam: 1,
getNextPageParam: (lastPage, allPages) => {
getNextPageParam: (_, allPages) => {
if (allPages[allPages.length - 1].length !== 0) {
return allPages.length + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/api/useChannelPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function useChannelPost() {
queryKey: ['infiniteChannelPost', channelId, COUNT],
queryFn: getInfiniteChannelPost,
initialPageParam: 1,
getNextPageParam: (lastPage, allPages) => {
getNextPageParam: (_, allPages) => {
if (allPages[allPages.length - 1].length !== 0) {
return allPages.length + 1;
}
Expand Down

0 comments on commit 5853889

Please sign in to comment.