diff --git a/client/src/pages/platform/workflow-editor/components/Properties/Property.tsx b/client/src/pages/platform/workflow-editor/components/Properties/Property.tsx index 4d13982438a..0debcd4cf39 100644 --- a/client/src/pages/platform/workflow-editor/components/Properties/Property.tsx +++ b/client/src/pages/platform/workflow-editor/components/Properties/Property.tsx @@ -787,13 +787,11 @@ const Property = ({ return; } - const workflowDefinition = JSON.parse(workflow.definition); - - const currentWorkflowNode = [...workflowDefinition.triggers, ...workflowDefinition.tasks].find( + const currentWorkflowNode = [...(workflow.triggers ?? []), ...(workflow.tasks ?? [])].find( (node) => node.name === currentNode?.name ); - setPropertyParameterValue(resolvePath(currentWorkflowNode.parameters, path)); + setPropertyParameterValue(resolvePath(currentWorkflowNode?.parameters, path)); // eslint-disable-next-line react-hooks/exhaustive-deps }, [workflow.definition]);