From 7f65e6fd2daf84123d2e7772262d7f1c8b1e8e14 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 25 Jul 2025 19:02:36 +0800 Subject: [PATCH] Apply suggestion Signed-off-by: wxiaoguang --- web_src/js/features/repo-issue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {