Skip to content

Commit 2032080

Browse files
committed
Merge pull request #320 from acusti/patch-2
Fix #319 (user not-logged in error)
2 parents c4eeb80 + 8ccde45 commit 2032080

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

public/js/app.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,11 @@ function initIssue() {
579579
var $attachedList = $("#attached-list");
580580
var $addButton = $("#attachments-button");
581581

582-
var fileInput = $("#attachments-input")[0];
583-
582+
var fileInput = document.getElementById("attachments-input");
583+
584+
if (fileInput === null) {
585+
return;
586+
}
584587
fileInput.addEventListener("change", function(event) {
585588
$attachedList.empty();
586589
$attachedList.append("<b>Attachments:</b> ");

0 commit comments

Comments
 (0)