mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix bug
This commit is contained in:
parent
59798ad0bd
commit
dc10f52db3
|
@ -130,7 +130,7 @@ export class WorkflowDataProxy {
|
|||
throw new Error(`No execution data found for node "${nodeName}"`);
|
||||
}
|
||||
|
||||
runIndex = runIndex === undefined ? that.runIndex : 0;
|
||||
runIndex = runIndex === undefined ? that.runIndex : runIndex;
|
||||
|
||||
if (that.runExecutionData.resultData.runData[nodeName].length < runIndex) {
|
||||
throw new Error(`No execution data found for run "${runIndex}" of node "${nodeName}"`);
|
||||
|
@ -201,7 +201,7 @@ export class WorkflowDataProxy {
|
|||
name = name.toString();
|
||||
|
||||
if (['binary', 'data', 'json'].includes(name)) {
|
||||
const executionData = that.getNodeExecutionData(name, shortSyntax);
|
||||
const executionData = that.getNodeExecutionData(nodeName, shortSyntax);
|
||||
|
||||
if (executionData.length <= that.itemIndex) {
|
||||
throw new Error(`No data found for item-index: "${that.itemIndex}"`);
|
||||
|
|
|
@ -1203,11 +1203,12 @@ describe('Workflow', () => {
|
|||
{
|
||||
startTime: 1,
|
||||
executionTime: 1,
|
||||
// @ts-ignore
|
||||
data: {
|
||||
main: [
|
||||
[
|
||||
{}
|
||||
{
|
||||
json: {},
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue