Fix error reponse message in form editor
This commit is contained in:
parent
e04221a72c
commit
3a36a8f99d
|
@ -256,7 +256,7 @@ export default {
|
||||||
this.amplitude.logEvent('form_saved', { form_id: this.form.id, form_slug: this.form.slug })
|
this.amplitude.logEvent('form_saved', { form_id: this.form.id, form_slug: this.form.slug })
|
||||||
this.displayFormModificationAlert(data)
|
this.displayFormModificationAlert(data)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
if (error?.response.status === 422) {
|
if (error?.response?.status === 422) {
|
||||||
this.validationErrorResponse = error.response.data
|
this.validationErrorResponse = error.response.data
|
||||||
this.showValidationErrors()
|
this.showValidationErrors()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue