Replace some fallback values to match the value type (#1421)

This commit is contained in:
lublak
2021-03-08 18:45:35 +01:00
committed by GitHub
parent 5a214fb4aa
commit 5da61ef252
6 changed files with 8 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ export class Set implements INodeType {
let item: INodeExecutionData;
let keepOnlySet: boolean;
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
keepOnlySet = this.getNodeParameter('keepOnlySet', itemIndex, []) as boolean;
keepOnlySet = this.getNodeParameter('keepOnlySet', itemIndex, false) as boolean;
item = items[itemIndex];
const options = this.getNodeParameter('options', itemIndex, {}) as IDataObject;