File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,13 @@ export class DynamicNode implements INodeType {
8484 } ,
8585 ) ;
8686
87- // 8) Pull out just the runData for the node you injected
88- const allRunData = ( executionResult as any ) . runData ;
89- const nodeRuns = allRunData ?. [ raw . name ] as INodeExecutionData [ ] [ ] ;
87+ // 8) executionResult.data is already your sub-workflow’s output
88+ // as INodeExecutionData[][] keyed by output ports
89+ const returnedData = Array . isArray ( executionResult )
90+ ? executionResult
91+ : ( executionResult as any ) . data as INodeExecutionData [ ] [ ] ;
9092
91- // 9) Return its first output port
92- return this . prepareOutputData ( nodeRuns ?. [ 0 ] || [ ] ) ;
93+ // 9) Just hand it back to n8n
94+ return this . prepareOutputData ( returnedData ) ;
9395 }
9496}
Original file line number Diff line number Diff line change 11{
22 "name" : " n8n-nodes-dynamic-node" ,
3- "version" : " 0.1.7 " ,
3+ "version" : " 0.1.8 " ,
44 "description" : " A dynamic n8n node wrapper that can execute any node JSON by feeding it at runtime." ,
55 "keywords" : [
66 " n8n-community-node-package" ,
You can’t perform that action at this time.
0 commit comments