From 4bd46f80e7caf81d8df0711ced30d5fba2c6d865 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 23 Mar 2015 19:24:26 -0700 Subject: [PATCH] Allow empty group avatar file input --- js/views/file_input_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 7dd72175..15488028 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -144,7 +144,7 @@ getFile: function(file) { 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); },