We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0725d77 commit c833dfaCopy full SHA for c833dfa
apps/web/actions/videos/delete-comment.ts
@@ -13,7 +13,7 @@ export async function deleteComment({
13
videoId,
14
}: {
15
commentId: Comment.CommentId;
16
- parentId?: Comment.CommentId;
+ parentId: Comment.CommentId | null;
17
videoId: Video.VideoId;
18
}) {
19
const user = await getCurrentUser();
apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsx
@@ -174,7 +174,7 @@ export const Comments = Object.assign(
174
175
const handleDeleteComment = async (
176
commentId: Comment.CommentId,
177
- parentId?: Comment.CommentId,
+ parentId: Comment.CommentId | null,
178
) => {
179
try {
180
await deleteComment({
0 commit comments