aboutsummaryrefslogtreecommitdiff
path: root/src/components/image_cropper/image_cropper.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-02-08 22:37:45 -0500
committertaehoon <th.dev91@gmail.com>2019-02-15 13:34:33 -0500
commit3094c50ff9e7abc7fc8b7fa4d21d606170843178 (patch)
treeacde5c72d8abcd67c185806e7b4efcf98277abf8 /src/components/image_cropper/image_cropper.js
parent2de756aa0c27ae5267032e07c2e1f998d49d0df5 (diff)
Fix lint errors
Diffstat (limited to 'src/components/image_cropper/image_cropper.js')
-rw-r--r--src/components/image_cropper/image_cropper.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/image_cropper/image_cropper.js b/src/components/image_cropper/image_cropper.js
index da94427a..990c0370 100644
--- a/src/components/image_cropper/image_cropper.js
+++ b/src/components/image_cropper/image_cropper.js
@@ -69,8 +69,12 @@ const ImageCropper = {
this.avatarUploadError = null
this.submitHandler(this.cropper, this.filename)
.then(() => this.destroy())
- .catch(err => this.submitError = err)
- .finally(() => this.submitting = false)
+ .catch((err) => {
+ this.submitError = err
+ })
+ .finally(() => {
+ this.submitting = false
+ })
},
pickImage () {
this.$refs.input.click()