🐛 Fix issue that did not use actual node parameters loading options

This commit is contained in:
Jan Oberhauser 2020-03-15 13:00:57 +01:00
parent ba22ab02d8
commit 150aa7daee
2 changed files with 4 additions and 4 deletions

View file

@ -550,7 +550,7 @@ class App {
const nodeTypes = NodeTypes(); const nodeTypes = NodeTypes();
const loadDataInstance = new LoadNodeParameterOptions(nodeType, nodeTypes, credentials); const loadDataInstance = new LoadNodeParameterOptions(nodeType, nodeTypes, JSON.parse('' + req.query.currentNodeParameters), credentials);
const workflowData = loadDataInstance.getWorkflowData() as IWorkflowBase; const workflowData = loadDataInstance.getWorkflowData() as IWorkflowBase;
const workflowCredentials = await WorkflowCredentials(workflowData.nodes); const workflowCredentials = await WorkflowCredentials(workflowData.nodes);

View file

@ -1,6 +1,7 @@
import { import {
INode, INode,
INodeCredentials, INodeCredentials,
INodeParameters,
INodePropertyOptions, INodePropertyOptions,
INodeTypes, INodeTypes,
IWorkflowExecuteAdditionalData, IWorkflowExecuteAdditionalData,
@ -20,7 +21,7 @@ export class LoadNodeParameterOptions {
workflow: Workflow; workflow: Workflow;
constructor(nodeTypeName: string, nodeTypes: INodeTypes, credentials?: INodeCredentials) { constructor(nodeTypeName: string, nodeTypes: INodeTypes, currentNodeParameters: INodeParameters, credentials?: INodeCredentials) {
const nodeType = nodeTypes.getByName(nodeTypeName); const nodeType = nodeTypes.getByName(nodeTypeName);
if (nodeType === undefined) { if (nodeType === undefined) {
@ -28,8 +29,7 @@ export class LoadNodeParameterOptions {
} }
const nodeData: INode = { const nodeData: INode = {
parameters: { parameters: currentNodeParameters,
},
name: TEMP_NODE_NAME, name: TEMP_NODE_NAME,
type: nodeTypeName, type: nodeTypeName,
typeVersion: 1, typeVersion: 1,