Fix error reponse message in form editor

This commit is contained in:
Julien Nahum 2024-02-10 16:34:41 +01:00
parent e04221a72c
commit 3a36a8f99d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {