Skip to content
Snippets Groups Projects
Commit 36f8eb5d authored by Alexey Lunin's avatar Alexey Lunin
Browse files

Check if email participants are null

parent 3ce0743e
No related branches found
No related tags found
1 merge request!26[Email Thread] Display registered and not registered receivers
...@@ -17,6 +17,10 @@ const SIGNATURE_CONTENT_TYPE = "application/pkcs7-signature"; ...@@ -17,6 +17,10 @@ const SIGNATURE_CONTENT_TYPE = "application/pkcs7-signature";
export const DEFAULT_ATTACHMENT_NAME = 'attachment'; export const DEFAULT_ATTACHMENT_NAME = 'attachment';
const splitParticipants = participantsList => { const splitParticipants = participantsList => {
if (!participantsList) {
return [];
}
const participants = participantsList.map(participants => participants.split(",").map(p => p.trim())); const participants = participantsList.map(participants => participants.split(",").map(p => p.trim()));
return union.apply(null, participants); return union.apply(null, participants);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment