mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Disable test step option in context menu for sub-nodes (#13816)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user