Skip to content

Beautiful Open-Source Form Builder

edit notifications modal fixed (#219)

formsdev30aee7813c36
diff --git a/resources/js/components/open/forms/components/form-components/components/FormNotificationsDiscord.vue b/resources/js/components/open/forms/components/form-components/components/FormNotificationsDiscord.vue
index ddb28f259..16ae57f57 100644
--- a/resources/js/components/open/forms/components/form-components/components/FormNotificationsDiscord.vue
+++ b/resources/js/components/open/forms/components/form-components/components/FormNotificationsDiscord.vue
@@ -73,7 +73,7 @@ export default {
watch: {},
mounted () {
- if(!this.form.notification_settings.discord){
+ if(!this.form.notification_settings.discord || Array.isArray(this.form.notification_settings.discord)){
this.form.notification_settings.discord = {}
}
},
diff --git a/resources/js/components/open/forms/components/form-components/components/FormNotificationsSlack.vue b/resources/js/components/open/forms/components/form-components/components/FormNotificationsSlack.vue
index bfc0d5739..dde15fcc1 100644
--- a/resources/js/components/open/forms/components/form-components/components/FormNotificationsSlack.vue
+++ b/resources/js/components/open/forms/components/form-components/components/FormNotificationsSlack.vue
@@ -74,7 +74,7 @@ export default {
watch: {},
mounted () {
- if(!this.form.notification_settings.slack){
+ if(!this.form.notification_settings.slack || Array.isArray(this.form.notification_settings.slack)){
this.form.notification_settings.slack = {}
}
},