fix(Merge Node): Passing on no items to "Input 2" results in wrong output items (#8438)

This commit is contained in:
Michael Kret
2024-01-25 19:11:23 +02:00
committed by GitHub
parent ef4507c821
commit dafacb90c6
2 changed files with 593 additions and 0 deletions

View File

@@ -485,6 +485,11 @@ export class MergeV2 implements INodeType {
}
if (input1.length === 0 || input2.length === 0) {
if (!input1.length && joinMode === 'keepNonMatches' && outputDataFrom === 'input1')
return [returnData];
if (!input2.length && joinMode === 'keepNonMatches' && outputDataFrom === 'input2')
return [returnData];
if (joinMode === 'keepMatches') {
// Stop the execution
return [[]];