The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix: TypeError: Cannot convert undefined or null to object (#18333)
sonarly[bot]dc0070144879
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCode.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCode.tsxindex b41da8dcdbd..3fa7ac48c8e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCode.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCode.tsx@@ -133,7 +133,7 @@ export const WorkflowEditActionCode = ({const [functionInput, setFunctionInput] =useState<LogicFunctionInputFormData>(- action.settings.input.logicFunctionInput,+ action.settings.input.logicFunctionInput ?? {},);const handleUpdateFunctionInputSchema = useDebouncedCallback(diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCodeFields.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCodeFields.tsxindex 45064647c64..c423eacbce1 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCodeFields.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCodeFields.tsx@@ -38,7 +38,7 @@ export const WorkflowEditActionCodeFields = ({}: WorkflowEditActionCodeFieldsProps) => {return (<StyledContainer fullWidth={fullWidth}>- {Object.entries(functionInput).map(([inputKey, inputValue]) => {+ {Object.entries(functionInput ?? {}).map(([inputKey, inputValue]) => {const currentPath = [...path, inputKey];const pathKey = currentPath.join('.');