Use empty string as fallback greeting_message if null (#948)

This commit is contained in:
Pranav Raj S 2020-06-10 00:16:34 +05:30 committed by GitHub
parent 432dad203b
commit eadc33d230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,12 +312,12 @@ export default {
name: this.selectedInboxName, name: this.selectedInboxName,
enable_auto_assignment: this.autoAssignment, enable_auto_assignment: this.autoAssignment,
greeting_enabled: this.greetingEnabled, greeting_enabled: this.greetingEnabled,
greeting_message: this.greetingMessage, greeting_message: this.greetingMessage || '',
channel: { channel: {
widget_color: this.inbox.widget_color, widget_color: this.inbox.widget_color,
website_url: this.channelWebsiteUrl, website_url: this.channelWebsiteUrl,
welcome_title: this.channelWelcomeTitle, welcome_title: this.channelWelcomeTitle || '',
welcome_tagline: this.channelWelcomeTagline, welcome_tagline: this.channelWelcomeTagline || '',
}, },
}; };
if (this.avatarFile) { if (this.avatarFile) {