Use arrow function for consistency

This commit is contained in:
Oliver Davies 2019-06-04 21:23:33 +01:00
parent e0cf0d07ae
commit fa9ca37fb4

View file

@ -68,9 +68,10 @@ export default {
'Content-Type': 'application/vnd.api+json',
}
})
.then(({ data }) => {
.then(response => {
this.form.body = ''
this.form.title = ''
})
.catch(error => {
this.errors = error.response.data.errors || []
})