The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Accept any json value in result and error (#14954)
Baptiste Devessiere382730a39ef
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepOutputDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepOutputDetail.tsxindex 38a34bfb5fc..b7a4deab7a1 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepOutputDetail.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepOutputDetail.tsx@@ -74,7 +74,7 @@ export const WorkflowRunStepOutputDetail = ({ stepId }: { stepId: string }) => {: i18n._(getActionHeaderTypeOrThrow(stepDefinition.definition.type));const setRedHighlightingForEveryNode: GetJsonNodeHighlighting = (keyPath) => {- if (keyPath === 'error') {+ if (keyPath.startsWith('error')) {return 'red';}diff --git a/packages/twenty-shared/src/workflow/schemas/workflow-run-state-step-info-schema.ts b/packages/twenty-shared/src/workflow/schemas/workflow-run-state-step-info-schema.tsindex beaa6622e36..2446ab141a0 100644--- a/packages/twenty-shared/src/workflow/schemas/workflow-run-state-step-info-schema.ts+++ b/packages/twenty-shared/src/workflow/schemas/workflow-run-state-step-info-schema.ts@@ -3,7 +3,7 @@ import { workflowRunStepStatusSchema } from './workflow-run-step-status-schema';export const workflowRunStateStepInfoSchema = z.object({result: z.any().optional(),- error: z.string().optional(),+ error: z.any().optional(),status: workflowRunStepStatusSchema,get history() {return z