From eadc33d23078692bc2930ccb40151a22f5282fc0 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 10 Jun 2020 00:16:34 +0530 Subject: [PATCH] Use empty string as fallback greeting_message if null (#948) --- .../dashboard/routes/dashboard/settings/inbox/Settings.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 99671a7c1..5b35d07f3 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -312,12 +312,12 @@ export default { name: this.selectedInboxName, enable_auto_assignment: this.autoAssignment, greeting_enabled: this.greetingEnabled, - greeting_message: this.greetingMessage, + greeting_message: this.greetingMessage || '', channel: { widget_color: this.inbox.widget_color, website_url: this.channelWebsiteUrl, - welcome_title: this.channelWelcomeTitle, - welcome_tagline: this.channelWelcomeTagline, + welcome_title: this.channelWelcomeTitle || '', + welcome_tagline: this.channelWelcomeTagline || '', }, }; if (this.avatarFile) {