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:
Iván Ovejero 2023-08-16 16:14:41 +02:00 committed by GitHub
parent 27a18821b9
commit d4fac0527b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;