🐛 Fix issue that FunctionItem-Node loses binary data #840

This commit is contained in:
Jan Oberhauser 2020-08-14 20:02:52 +02:00
parent adf0d09cc5
commit 070dfd6cde

View file

@ -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;
}
}