Simplify convert method

This commit is contained in:
Krzysztof Janda 2020-04-11 20:30:28 +02:00
parent 294a9ea599
commit 532b9a9294

View file

@ -54,10 +54,7 @@ export function createDataFromParameters(this: IExecuteFunctions | IExecuteSingl
}
// Parameters are defined in UI
return unpackUiDataFields(this.getNodeParameter('dataFieldsUi', itemIndex, {}) as IDataObject);
}
function unpackUiDataFields(uiDataFields: IDataObject): IDataObject {
const uiDataFields = this.getNodeParameter('dataFieldsUi', itemIndex, {}) as IDataObject;
const unpacked: IDataObject = {};
if (uiDataFields.field === undefined) {