Ensure that errors are emptied on success
This commit is contained in:
parent
43e05e8438
commit
b901bf14cd
|
@ -76,6 +76,7 @@ export default {
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
const title = data.data.attributes.title
|
const title = data.data.attributes.title
|
||||||
this.messages.push(`Session ${title} has been created.`)
|
this.messages.push(`Session ${title} has been created.`)
|
||||||
|
this.errors = []
|
||||||
|
|
||||||
this.form.body = ''
|
this.form.body = ''
|
||||||
this.form.title = ''
|
this.form.title = ''
|
||||||
|
|
Loading…
Reference in a new issue