summaryrefslogtreecommitdiff
path: root/source/features/submit-review-as-single-comment.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-08-31 01:26:28 +0700
committerGravatar GitHub <noreply@github.com> 2019-08-31 01:26:28 +0700
commit8d0393542bd712d7bb7f93874118dedd07b62c7b (patch)
tree0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/features/submit-review-as-single-comment.tsx
parent0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff)
downloadrefined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.gz
refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.zst
refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.zip
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/features/submit-review-as-single-comment.tsx')
-rw-r--r--source/features/submit-review-as-single-comment.tsx2
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);