mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(Set Node): Fix behaviour when selecting continueOnFail & PairedItem (#5257)
* 🐛 Fix bug on continueOnFail with pairedItem * 🐛 Fix pairedItem continueOnFail for the Set Node * 🎨 Add the ExpressionExtensionError back * ⚡ import fix --------- Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
parent
c6bc57b4cb
commit
a8637a0bc6
|
@ -70,6 +70,7 @@ import {
|
|||
OAuth2GrantType,
|
||||
deepCopy,
|
||||
fileTypeFromMimeType,
|
||||
ExpressionError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { Agent } from 'https';
|
||||
|
@ -1806,13 +1807,16 @@ export function getNodeParameter(
|
|||
additionalKeys,
|
||||
executeData,
|
||||
);
|
||||
|
||||
cleanupParameterData(returnData);
|
||||
} catch (e) {
|
||||
if (e instanceof ExpressionError && node.continueOnFail && node.name === 'Set') {
|
||||
returnData = [{ name: undefined, value: undefined }];
|
||||
} else {
|
||||
if (e.context) e.context.parameter = parameterName;
|
||||
e.cause = value;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
// This is outside the try/catch because it throws errors with proper messages
|
||||
if (options?.extractValue) {
|
||||
|
|
Loading…
Reference in a new issue