Skip to content

Commit 86e0932

Browse files
authored
Apply suggestion
Signed-off-by: wxiaoguang <[email protected]>
1 parent 0e949d4 commit 86e0932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-issue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
544544
hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor'));
545545
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
546546
// if "form-field-dropzone" exists, then "dropzone" must also exist
547-
const dropzone = dropzoneContainer.querySelector('.dropzone').dropzone;
547+
const dropzone = dropzoneContainer.querySelector<HTMLElement>('.dropzone').dropzone;
548548
const hasUploadedFiles = dropzone.files.length !== 0;
549549
toggleElem(dropzoneContainer, hasUploadedFiles);
550550
});

0 commit comments

Comments
 (0)