mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Fix issue that FunctionItem-Node loses binary data #840
This commit is contained in:
parent
adf0d09cc5
commit
070dfd6cde
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue