mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix issue that FunctionItem-Node loses binary data #840
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user