fix: PairedItems various fixes (no-changelog) (#9357)
This commit is contained in:
@@ -260,7 +260,10 @@ export async function execute(
|
||||
}
|
||||
|
||||
if (nodeVersion < 4 || dataMode === 'autoMapInputData') {
|
||||
return items;
|
||||
return items.map((item, index) => {
|
||||
item.pairedItem = { item: index };
|
||||
return item;
|
||||
});
|
||||
} else {
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
for (const [index, entry] of setData.entries()) {
|
||||
|
||||
@@ -430,7 +430,10 @@ export async function execute(
|
||||
}
|
||||
|
||||
if (nodeVersion < 4 || dataMode === 'autoMapInputData') {
|
||||
return items;
|
||||
return items.map((item, index) => {
|
||||
item.pairedItem = { item: index };
|
||||
return item;
|
||||
});
|
||||
} else {
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
for (const [index, entry] of mappedValues.entries()) {
|
||||
|
||||
@@ -404,7 +404,10 @@ export async function execute(
|
||||
}
|
||||
|
||||
if (nodeVersion < 4 || dataMode === 'autoMapInputData') {
|
||||
return items;
|
||||
return items.map((item, index) => {
|
||||
item.pairedItem = { item: index };
|
||||
return item;
|
||||
});
|
||||
} else {
|
||||
if (!updateData.length) {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user