+1
-1
@@ -268,7 +268,7 @@ export const WorkflowEditActionUpsertRecord = ({
|
||||
<FormSingleRecordPicker
|
||||
key="id"
|
||||
testId="workflow-upsert-record-id"
|
||||
label="Record (ID)"
|
||||
label={t`Record (ID)`}
|
||||
onChange={(recordId) => {
|
||||
handleFieldChange('id', recordId);
|
||||
}}
|
||||
|
||||
+1
-4
@@ -53,10 +53,7 @@ export class ToolExecutorWorkflowAction implements WorkflowAction {
|
||||
if (sendEmailInput.body) {
|
||||
toolInput = {
|
||||
...sendEmailInput,
|
||||
body: resolveRichTextVariables(
|
||||
sendEmailInput.body,
|
||||
context,
|
||||
),
|
||||
body: resolveRichTextVariables(sendEmailInput.body, context),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ const buildTextNodesWithLineBreaks = (text: string): string => {
|
||||
export const resolveRichTextVariables = (
|
||||
input: string | null | undefined,
|
||||
context: Record<string, unknown>,
|
||||
): string | null | undefined => {
|
||||
): string | undefined => {
|
||||
if (!isDefined(input)) {
|
||||
return input;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return input.replace(
|
||||
|
||||
Reference in New Issue
Block a user