From b5c152400d7db2792885b54c3e4d8ec11b3e3fcc Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Mon, 27 Mar 2023 17:02:41 +0200 Subject: [PATCH] Fix AI error message --- .../js/components/pages/forms/create/CreateFormBaseModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/pages/forms/create/CreateFormBaseModal.vue b/resources/js/components/pages/forms/create/CreateFormBaseModal.vue index 3132028..350b98f 100644 --- a/resources/js/components/pages/forms/create/CreateFormBaseModal.vue +++ b/resources/js/components/pages/forms/create/CreateFormBaseModal.vue @@ -105,7 +105,7 @@ export default { this.$emit('form-generated', response.data.form) this.$emit('close') }).catch(error => { - this.alertError(error.data.message) + this.alertError(error.response.data.message) this.state = 'default' }) }