We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b1ee5 commit 151b786Copy full SHA for 151b786
web_src/js/features/repo-issue-edit.js
@@ -125,7 +125,9 @@ async function onEditContent(event) {
125
content: comboMarkdownEditor.value(),
126
context: editContentZone.getAttribute('data-context'),
127
});
128
- for (const fileInput of dropzoneInst?.element.querySelectorAll('.files [name=files]')) params.append('files[]', fileInput.value);
+ for (const fileInput of dropzoneInst?.element.querySelectorAll('.files [name=files]') ?? []) {
129
+ params.append('files[]', fileInput.value);
130
+ }
131
132
const response = await POST(editContentZone.getAttribute('data-update-url'), {data: params});
133
const data = await response.json();
0 commit comments