We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b9334 commit 8edf753Copy full SHA for 8edf753
src/widgets/post-detail-dialog/ui/post-detail-dialog.tsx
@@ -16,7 +16,7 @@ export const PostDetailDialog: React.FC = () => {
16
const openEditComment = useDialogStore((s) => s.openEditComment)
17
const postId = post?.id
18
19
- const { data: commentsData } = useGetComments(postId ?? 0)
+ const { data: commentsData } = useGetComments(postId ?? null)
20
const comments = commentsData?.comments || []
21
22
return (
0 commit comments