Allow empty group avatar file input
This commit is contained in:
parent
ce36c36bd0
commit
4bd46f80e7
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@
|
||||||
|
|
||||||
getFile: function(file) {
|
getFile: function(file) {
|
||||||
file = file || this.$input.prop('files')[0];
|
file = file || this.$input.prop('files')[0];
|
||||||
if (file === undefined) { throw 'No file'; }
|
if (file === undefined) { return Promise.resolve(); }
|
||||||
return this.autoScale(file).then(this.readFile);
|
return this.autoScale(file).then(this.readFile);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue