Skip to content

Commit

Permalink
Merge branch 'main' into epic/FE-54--detail-page
Browse files Browse the repository at this point in the history
  • Loading branch information
jisurk authored Aug 7, 2024
2 parents e5d1eae + c6d4369 commit efb2468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useEpigramCommentsQueryHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const useEpigramCommentsQuery = (epigramId: number) =>
useInfiniteQuery<CommentResponseType, Error, InfiniteData<CommentResponseType>>({
...queries.epigramComment.getComments(epigramId),
initialPageParam: undefined,
getNextPageParam: (lastPage: CommentResponseType) => lastPage.nextCursor ?? undefined,
getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
});

export default useEpigramCommentsQuery;

0 comments on commit efb2468

Please sign in to comment.