mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
feat(editor): Support partial executions of tool nodes (#14945)
This commit is contained in:
@@ -1556,5 +1556,9 @@ export function isTriggerNode(nodeTypeData: INodeTypeDescription) {
|
||||
export function isExecutable(workflow: Workflow, node: INode, nodeTypeData: INodeTypeDescription) {
|
||||
const outputs = getNodeOutputs(workflow, node, nodeTypeData);
|
||||
const outputNames = getConnectionTypes(outputs);
|
||||
return outputNames.includes(NodeConnectionTypes.Main) || isTriggerNode(nodeTypeData);
|
||||
return (
|
||||
outputNames.includes(NodeConnectionTypes.Main) ||
|
||||
isTriggerNode(nodeTypeData) ||
|
||||
nodeTypeData.usableAsTool === true
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user