From 301b3587da3f36efb56348149e57cfe1737730c2 Mon Sep 17 00:00:00 2001 From: martmull Date: Wed, 13 Nov 2024 12:22:24 +0100 Subject: [PATCH] Update typing --- .../components/WorkflowEditActionFormServerlessFunction.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormServerlessFunction.tsx b/packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormServerlessFunction.tsx index 5da3f29002c8..71d80ca3d7a6 100644 --- a/packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormServerlessFunction.tsx +++ b/packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormServerlessFunction.tsx @@ -143,7 +143,7 @@ export const WorkflowEditActionFormServerlessFunction = ( functionInput: FunctionInput, path: string[] = [], isRoot = true, - ): ReactNode | undefined => { + ): ReactNode[] => { return Object.entries(functionInput).map(([inputKey, inputValue]) => { const currentPath = [...path, inputKey]; const pathKey = currentPath.join('.'); @@ -191,7 +191,7 @@ export const WorkflowEditActionFormServerlessFunction = ( disabled={props.readonly} onChange={handleFunctionChange} /> - {functionInput && renderFields(functionInput)} + {renderFields(functionInput)} ); };