fix(Set Node): Do not stringify null and undefined (#7313)

Github issue / Community forum post (link here to close automatically):
https://community.n8n.io/t/null-and-undefined-in-string-fields/31060/1
This commit is contained in:
Michael Kret
2023-10-03 11:18:33 +03:00
committed by GitHub
parent 3704760724
commit f0a66873b9
4 changed files with 24 additions and 5 deletions

View File

@@ -12,13 +12,14 @@ export class Set extends VersionedNodeType {
icon: 'fa:pen',
group: ['input'],
description: 'Add or edit fields on an input item and optionally remove other fields',
defaultVersion: 3,
defaultVersion: 3.1,
};
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
1: new SetV1(baseDescription),
2: new SetV1(baseDescription),
3: new SetV2(baseDescription),
3.1: new SetV2(baseDescription),
};
super(nodeVersions, baseDescription);