Ensure that errors are emptied on success

This commit is contained in:
Oliver Davies 2019-06-04 22:16:33 +01:00
parent 43e05e8438
commit b901bf14cd

View file

@ -76,6 +76,7 @@ export default {
.then(({ data }) => {
const title = data.data.attributes.title
this.messages.push(`Session ${title} has been created.`)
this.errors = []
this.form.body = ''
this.form.title = ''