Skip to content

Commit 8edf753

Browse files
committed
fix: selectedPost가 없을 경우 api 호출 처리 수정
1 parent c9b9334 commit 8edf753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widgets/post-detail-dialog/ui/post-detail-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const PostDetailDialog: React.FC = () => {
1616
const openEditComment = useDialogStore((s) => s.openEditComment)
1717
const postId = post?.id
1818

19-
const { data: commentsData } = useGetComments(postId ?? 0)
19+
const { data: commentsData } = useGetComments(postId ?? null)
2020
const comments = commentsData?.comments || []
2121

2222
return (

0 commit comments

Comments
 (0)