diff --git a/web_src/js/features/repo-issue.ts b/web_src/js/features/repo-issue.ts index c30f78a70d7..aafa73727b3 100644 --- a/web_src/js/features/repo-issue.ts +++ b/web_src/js/features/repo-issue.ts @@ -543,7 +543,7 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) { showElem(commentForm.querySelectorAll('.combo-editor-dropzone .form-field-real')); hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor')); queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => { - const dropzoneEl = dropzoneContainer.closest('.combo-editor-dropzone')?.querySelector('.dropzone'); + const dropzoneEl = dropzoneContainer.closest('.combo-editor-dropzone').querySelector('.dropzone'); const dzInstance = dropzoneEl?.dropzone; if (dzInstance && dzInstance.files.length === 0) {