fix(editor): Disable test step option in context menu for sub-nodes (#13816)

This commit is contained in:
jeanpaul
2025-03-11 14:56:49 +01:00
committed by GitHub
parent e8334eefa1
commit b6d5092258
4 changed files with 300 additions and 3 deletions

View File

@@ -1718,3 +1718,13 @@ export function getVersionedNodeType(
}
return object;
}
export function isTriggerNode(nodeTypeData: INodeTypeDescription) {
return nodeTypeData.group.includes('trigger');
}
export function isExecutable(workflow: Workflow, node: INode, nodeTypeData: INodeTypeDescription) {
const outputs = getNodeOutputs(workflow, node, nodeTypeData);
const outputNames = getConnectionTypes(outputs);
return outputNames.includes(NodeConnectionType.Main) || isTriggerNode(nodeTypeData);
}