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.displayFormModificationAlert(data)
|
||||
}).catch((error) => {
|
||||
if (error?.response.status === 422) {
|
||||
if (error?.response?.status === 422) {
|
||||
this.validationErrorResponse = error.response.data
|
||||
this.showValidationErrors()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue