n8n/packages/nodes-base/nodes/HttpRequest/GenericFunctions.ts
Michael Kret 91d7e16c81
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
2022-08-17 17:50:24 +02:00

9 lines
182 B
TypeScript

import { INodeExecutionData } from 'n8n-workflow';
export const replaceNullValues = (item: INodeExecutionData) => {
if (item.json === null) {
item.json = {};
}
return item;
};