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";
export const DEFAULT_ATTACHMENT_NAME = 'attachment';
const splitParticipants = participantsList => {
if (!participantsList) {
return [];
}
const participants = participantsList.map(participants => participants.split(",").map(p => p.trim()));
return union.apply(null, participants);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment