Skip to content

Commit

Permalink
fix(core): Fix continueOnFail for expression error in Set (n8n-io#6939
Browse files Browse the repository at this point in the history
)

* fix(core): Fix `continueOnFail` for expression error in Set

* Add story
  • Loading branch information
ivov authored Aug 16, 2023
1 parent 27a1882 commit d4fac05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4fac05

Please sign in to comment.