fix: Set cc, bcc default to empty string if unavailable (#3387)

This commit is contained in:
Pranav Raj S 2021-11-15 21:05:24 +05:30 committed by GitHub
parent acb06e7df6
commit 809509404b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -8,8 +8,8 @@ export const buildCreatePayload = ({
contentAttributes,
echoId,
file,
ccEmails,
bccEmails,
ccEmails = '',
bccEmails = '',
}) => {
let payload;
if (file) {
@ -47,8 +47,8 @@ class MessageApi extends ApiClient {
contentAttributes,
echo_id: echoId,
file,
ccEmails,
bccEmails,
ccEmails = '',
bccEmails = '',
}) {
return axios({
method: 'post',