Skip to content

Commit

Permalink
client/upload: don't call emitFiles when there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
neobooru committed Jun 4, 2021
1 parent ca7b70a commit 1eb3b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/js/controls/file_dropper_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class FileDropperControl extends events.EventTarget {

if (!this._options.allowMultiple && fileList.length > 1) {
window.alert("Cannot select multiple files.");
} else {
} else if (fileList.length > 0) {
this._emitFiles(fileList);
}
}
Expand Down

0 comments on commit 1eb3b83

Please sign in to comment.