Fix lint errors

This commit is contained in:
taehoon 2019-02-08 22:37:45 -05:00
parent 2de756aa0c
commit 3094c50ff9

View File

@ -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()