Skip to content

Commit

Permalink
EZP-28372: Cannot preview content when editing (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpietro authored and Łukasz Serwatka committed Dec 1, 2017
1 parent 1fbf6be commit 8d35645
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@
};
}

if (!isEmpty && maxFileSize > 0 && input.files[0].size > maxFileSize) {
if (!isEmpty && maxFileSize > 0 && input.files[0] && input.files[0].size > maxFileSize) {
result = this.showFileSizeError();
}

Expand Down

0 comments on commit 8d35645

Please sign in to comment.