|
|
@@ -90,7 +90,7 @@ export const PageComment: FC<PageCommentProps> = memo((props: PageCommentProps):
|
|
|
}
|
|
|
}, [mutate, onCancelDeleteComment, onCommentCountUpdated]);
|
|
|
|
|
|
- const onDeleteComment = useCallback(async () => {
|
|
|
+ const onDeleteComment = useCallback(async() => {
|
|
|
if (commentToBeDeleted == null) return;
|
|
|
try {
|
|
|
await apiPost('/comments.remove', { comment_id: commentToBeDeleted._id });
|