mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): fix pairedItem in combination with pinned data (#4257)
🐛 Fix `pairedItem` in combination with pinned data
This commit is contained in:
@@ -668,10 +668,18 @@ export class WorkflowDataProxy {
|
||||
};
|
||||
}
|
||||
|
||||
const previousNodeHasPinData =
|
||||
sourceData && this.workflow.getPinDataOfNode(sourceData.previousNode) !== undefined;
|
||||
|
||||
let currentPairedItem = pairedItem;
|
||||
|
||||
let nodeBeforeLast: string | undefined;
|
||||
while (sourceData !== null && destinationNodeName !== sourceData.previousNode) {
|
||||
|
||||
while (
|
||||
!previousNodeHasPinData &&
|
||||
sourceData !== null &&
|
||||
destinationNodeName !== sourceData.previousNode
|
||||
) {
|
||||
taskData =
|
||||
that.runExecutionData!.resultData.runData[sourceData.previousNode][
|
||||
sourceData?.previousNodeRun || 0
|
||||
|
||||
Reference in New Issue
Block a user