diff options
Diffstat (limited to 'source/features/submit-review-as-single-comment.tsx')
-rw-r--r-- | source/features/submit-review-as-single-comment.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/submit-review-as-single-comment.tsx b/source/features/submit-review-as-single-comment.tsx index 74b0cd45..32238e28 100644 --- a/source/features/submit-review-as-single-comment.tsx +++ b/source/features/submit-review-as-single-comment.tsx @@ -64,7 +64,7 @@ async function handleSubmitSingle(event: DelegateEvent): Promise<void> { // Use nearby comment box const comment = await getNewCommentField(commentContainer, lineBeingCommentedOn); const submitButton = select<HTMLButtonElement>('[name="single_comment"]', comment.form!)!; - const commentForm = comment.closest('.inline-comment-form-container') as HTMLElement; + const commentForm = comment.closest<HTMLElement>('.inline-comment-form-container')!; // Copy comment to new comment box insertText(comment.form!.elements['comment[body]'] as HTMLTextAreaElement, commentText); |