mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
Simplify convert method
This commit is contained in:
parent
294a9ea599
commit
532b9a9294
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue