The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix ts error resolve rich text (#16688)
Thomas Trompette79a03b804129
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsxindex be75b234062..7b1d749aa94 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx@@ -268,7 +268,7 @@ export const WorkflowEditActionUpsertRecord = ({<FormSingleRecordPickerkey="id"testId="workflow-upsert-record-id"- label="Record (ID)"+ label={t`Record (ID)`}onChange={(recordId) => {handleFieldChange('id', recordId);}}diff --git a/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/tool-executor-workflow-action.ts b/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/tool-executor-workflow-action.tsindex 6b7971ecad1..c16e9167531 100644--- a/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/tool-executor-workflow-action.ts+++ b/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/tool-executor-workflow-action.ts@@ -53,10 +53,7 @@ export class ToolExecutorWorkflowAction implements WorkflowAction {if (sendEmailInput.body) {toolInput = {...sendEmailInput,- body: resolveRichTextVariables(- sendEmailInput.body,- context,- ),+ body: resolveRichTextVariables(sendEmailInput.body, context),};}}diff --git a/packages/twenty-shared/src/utils/rich-text-variable-resolver.ts b/packages/twenty-shared/src/utils/rich-text-variable-resolver.tsindex 40f80fcf9de..1223ab2ed32 100644--- a/packages/twenty-shared/src/utils/rich-text-variable-resolver.ts+++ b/packages/twenty-shared/src/utils/rich-text-variable-resolver.ts@@ -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(