Fix whitespace bug for SendEmailBlock (#922)

This commit is contained in:
Kerem Yilmaz
2024-10-07 23:57:27 -07:00
committed by GitHub
parent 188f6ebfe5
commit 869ef69937

View File

@@ -508,8 +508,12 @@ function getWorkflowBlock(
block_type: "send_email",
label: node.data.label,
body: node.data.body,
file_attachments: node.data.fileAttachments.split(","),
recipients: node.data.recipients.split(","),
file_attachments: node.data.fileAttachments
.split(",")
.map((attachment) => attachment.trim()),
recipients: node.data.recipients
.split(",")
.map((recipient) => recipient.trim()),
subject: node.data.subject,
sender: node.data.sender === "" ? EMAIL_BLOCK_SENDER : node.data.sender,
smtp_host_secret_parameter_key: node.data.smtpHostSecretParameterKey,