mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Split In Batches Node): Fix issue with pairedItem (#4873)
fix(SplitInBatches Node): Fix issue with pairedItem
This commit is contained in:
@@ -39,6 +39,7 @@ import {
|
||||
IOAuth2Options,
|
||||
IPollFunctions,
|
||||
IRunExecutionData,
|
||||
ISourceData,
|
||||
ITaskDataConnections,
|
||||
ITriggerFunctions,
|
||||
IWebhookData,
|
||||
@@ -2320,6 +2321,13 @@ export function getExecuteFunctions(
|
||||
|
||||
return inputData[inputName][inputIndex] as INodeExecutionData[];
|
||||
},
|
||||
getInputSourceData: (inputIndex = 0, inputName = 'main') => {
|
||||
if (executeData?.source === null) {
|
||||
// Should never happen as n8n sets it automatically
|
||||
throw new Error('Source data is missing!');
|
||||
}
|
||||
return executeData.source[inputName][inputIndex];
|
||||
},
|
||||
getNodeParameter: (
|
||||
parameterName: string,
|
||||
itemIndex: number,
|
||||
@@ -2580,6 +2588,13 @@ export function getExecuteSingleFunctions(
|
||||
|
||||
return allItems[itemIndex];
|
||||
},
|
||||
getInputSourceData: (inputIndex = 0, inputName = 'main') => {
|
||||
if (executeData?.source === null) {
|
||||
// Should never happen as n8n sets it automatically
|
||||
throw new Error('Source data is missing!');
|
||||
}
|
||||
return executeData.source[inputName][inputIndex] as ISourceData;
|
||||
},
|
||||
getItemIndex() {
|
||||
return itemIndex;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user