Skip to content

Commit 3a36a8f

Browse files
committed
Fix error reponse message in form editor
1 parent e04221a commit 3a36a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/components/open/forms/components/FormEditor.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export default {
256256
this.amplitude.logEvent('form_saved', { form_id: this.form.id, form_slug: this.form.slug })
257257
this.displayFormModificationAlert(data)
258258
}).catch((error) => {
259-
if (error?.response.status === 422) {
259+
if (error?.response?.status === 422) {
260260
this.validationErrorResponse = error.response.data
261261
this.showValidationErrors()
262262
} else {

0 commit comments

Comments
 (0)