From 30aee7813c36ba4780143537f9f467290e5001f5 Mon Sep 17 00:00:00 2001 From: formsdev <136701234+formsdev@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:50:38 +0530 Subject: [PATCH] edit notifications modal fixed (#219) Co-authored-by: Julien Nahum --- .../form-components/components/FormNotificationsDiscord.vue | 2 +- .../form-components/components/FormNotificationsSlack.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {} } },