Commit cb388edd authored by scmoritz's avatar scmoritz
Browse files

Bugfix for no elements in new studydocs

parent db87d94e
......@@ -131,7 +131,7 @@ export default class studydocNew {
},
onchange: e => {
this.doc.files = e.target.files;
if (this.doc.files.length > 0) {
if (this.doc.files && this.doc.files.length > 0) {
this.isValid = true;
} else {
this.isValid = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment