mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix(core): Fix continueOnFail
for expression error in Set (#6939)
* fix(core): Fix `continueOnFail` for expression error in Set * Add story
This commit is contained in:
parent
27a18821b9
commit
d4fac0527b
|
@ -2041,7 +2041,8 @@ export function getNodeParameter(
|
|||
);
|
||||
cleanupParameterData(returnData);
|
||||
} catch (e) {
|
||||
if (e instanceof ExpressionError && node.continueOnFail && node.name === 'Set') {
|
||||
if (e instanceof ExpressionError && node.continueOnFail && node.type === 'n8n-nodes-base.set') {
|
||||
// https://linear.app/n8n/issue/PAY-684
|
||||
returnData = [{ name: undefined, value: undefined }];
|
||||
} else {
|
||||
if (e.context) e.context.parameter = parameterName;
|
||||
|
|
Loading…
Reference in a new issue