From 869ef699372e65caf5e7d77d3fcb4988a2ebca54 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Mon, 7 Oct 2024 23:57:27 -0700 Subject: [PATCH] Fix whitespace bug for SendEmailBlock (#922) --- .../src/routes/workflows/editor/workflowEditorUtils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index bf51b2c3..db355a62 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -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,