Skip to content

Beautiful Open-Source Form Builder

small fixes

Forms Dev83d3eb699195
diff --git a/resources/js/components/open/forms/OpenCompleteForm.vue b/resources/js/components/open/forms/OpenCompleteForm.vue
index fb06d4288..ee0d9e9ff 100644
--- a/resources/js/components/open/forms/OpenCompleteForm.vue
+++ b/resources/js/components/open/forms/OpenCompleteForm.vue
@@ -219,7 +219,7 @@ export default {
this.playConfetti()
}
}).catch((error) => {
- if (error.response.data && error.response.data.message) {
+ if (error.response && error.response.data && error.response.data.message) {
this.alertError(error.response.data.message)
}
this.loading = false
diff --git a/resources/js/pages/forms/edit.vue b/resources/js/pages/forms/edit.vue
index c88f461ba..6e8cb61a2 100644
--- a/resources/js/pages/forms/edit.vue
+++ b/resources/js/pages/forms/edit.vue
@@ -109,7 +109,7 @@ export default {
this.formInitialHash = this.hashString(JSON.stringify(this.updatedForm.data()))
}
- if (!this.updatedForm.notification_settings || Array.isArray(this.updatedForm.notification_settings)) {
+ if (this.updatedForm && (!this.updatedForm.notification_settings || Array.isArray(this.updatedForm.notification_settings))) {
this.updatedForm.notification_settings = {}
}
},