Skip to content

Commit c833dfa

Browse files
committed
ts
1 parent 0725d77 commit c833dfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/actions/videos/delete-comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function deleteComment({
1313
videoId,
1414
}: {
1515
commentId: Comment.CommentId;
16-
parentId?: Comment.CommentId;
16+
parentId: Comment.CommentId | null;
1717
videoId: Video.VideoId;
1818
}) {
1919
const user = await getCurrentUser();

apps/web/app/s/[videoId]/_components/tabs/Activity/Comments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const Comments = Object.assign(
174174

175175
const handleDeleteComment = async (
176176
commentId: Comment.CommentId,
177-
parentId?: Comment.CommentId,
177+
parentId: Comment.CommentId | null,
178178
) => {
179179
try {
180180
await deleteComment({

0 commit comments

Comments
 (0)