mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
Revert "feat(editor): Change default node names depending on node ope… (#16169)
This commit is contained in:
@@ -562,11 +562,6 @@ describe('ManualExecutionService', () => {
|
||||
return null;
|
||||
}),
|
||||
getTriggerNodes: jest.fn().mockReturnValue([determinedStartNode]),
|
||||
nodeTypes: {
|
||||
getByNameAndVersion: jest
|
||||
.fn()
|
||||
.mockReturnValue({ description: { name: '', outputs: [] } }),
|
||||
},
|
||||
});
|
||||
|
||||
jest
|
||||
|
||||
@@ -6,9 +6,10 @@ import {
|
||||
filterDisabledNodes,
|
||||
recreateNodeExecutionStack,
|
||||
WorkflowExecute,
|
||||
isTool,
|
||||
rewireGraph,
|
||||
} from 'n8n-core';
|
||||
import { MANUAL_TRIGGER_NODE_TYPE, NodeHelpers } from 'n8n-workflow';
|
||||
import { MANUAL_TRIGGER_NODE_TYPE } from 'n8n-workflow';
|
||||
import type {
|
||||
IExecuteData,
|
||||
IPinData,
|
||||
@@ -135,12 +136,8 @@ export class ManualExecutionService {
|
||||
`Could not find a node named "${data.destinationNode}" in the workflow.`,
|
||||
);
|
||||
|
||||
const destinationNodeType = workflow.nodeTypes.getByNameAndVersion(
|
||||
destinationNode.type,
|
||||
destinationNode.typeVersion,
|
||||
);
|
||||
// Rewire graph to be able to execute the destination tool node
|
||||
if (NodeHelpers.isTool(destinationNodeType.description, destinationNode.parameters)) {
|
||||
if (isTool(destinationNode, workflow.nodeTypes)) {
|
||||
const graph = rewireGraph(
|
||||
destinationNode,
|
||||
DirectedGraph.fromWorkflow(workflow),
|
||||
|
||||
Reference in New Issue
Block a user