From 86e09329701df9a20af64d75b78f8f518e2d804c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 25 Jul 2025 19:12:28 +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 0947d2ce0ef..b330b4869ba 100644 --- a/web_src/js/features/repo-issue.ts +++ b/web_src/js/features/repo-issue.ts @@ -544,7 +544,7 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) { hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor')); queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => { // if "form-field-dropzone" exists, then "dropzone" must also exist - const dropzone = dropzoneContainer.querySelector('.dropzone').dropzone; + const dropzone = dropzoneContainer.querySelector('.dropzone').dropzone; const hasUploadedFiles = dropzone.files.length !== 0; toggleElem(dropzoneContainer, hasUploadedFiles); });