Use arrow function for consistency
This commit is contained in:
parent
e0cf0d07ae
commit
fa9ca37fb4
|
@ -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 || []
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue