Skip to content

Commit

Permalink
Add null handling for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Amelia Magee committed Dec 2, 2024
1 parent 1b8ba14 commit 0dc1a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/DropZone/DropZone.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class DropZone {
const dataTransfer = new DataTransfer();
let wasFile = false;
for (let i = 0; i < this.files.length; i++) {
if (this.files[i].raw instanceof File){
if (this.files[i] && this.files[i].raw instanceof File){
dataTransfer.items.add(this.files[i].raw);
wasFile = true;
}
Expand Down

0 comments on commit 0dc1a7e

Please sign in to comment.