diff --git a/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts b/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts index 8db5c5b7ad..3f3bf39ac2 100644 --- a/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts @@ -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) {