diff --git a/packages/nodes-base/nodes/FunctionItem.node.ts b/packages/nodes-base/nodes/FunctionItem.node.ts index 6352fc3f98..b4573fccad 100644 --- a/packages/nodes-base/nodes/FunctionItem.node.ts +++ b/packages/nodes-base/nodes/FunctionItem.node.ts @@ -100,8 +100,14 @@ export class FunctionItem implements INodeType { throw new Error('No data got returned. Always an object has to be returned!'); } - return { + const returnItem: INodeExecutionData = { json: jsonData }; + + if (item.binary) { + returnItem.binary = item.binary; + } + + return returnItem; } }