fix(editor): Fix Paired item error message (#15171)

This commit is contained in:
Raúl Gómez Morales
2025-05-08 15:40:46 +02:00
committed by GitHub
parent abb8225944
commit be72f736ac
4 changed files with 8 additions and 8 deletions

View File

@@ -792,7 +792,11 @@ export class WorkflowDataProxy {
nodeCause: string,
usedMethodName: 'itemMatching' | 'pairedItem' | 'item' | '$getPairedItem' = 'pairedItem',
) => {
const message = `Using the ${usedMethodName} method doesn't work with pinned data in this scenario. Please unpin '${nodeCause}' and try again.`;
const pinData = getPinDataIfManualExecution(that.workflow, nodeCause, that.mode);
const message = pinData
? `Using the ${usedMethodName} method doesn't work with pinned data in this scenario. Please unpin '${nodeCause}' and try again.`
: `Paired item data for ${usedMethodName} from node '${nodeCause}' is unavailable. Ensure '${nodeCause}' is providing the required output.`;
return new ExpressionError(message, {
runIndex: that.runIndex,
itemIndex: that.itemIndex,