1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-03-05 20:50:17 -08:00
n8n/packages/nodes-base/nodes/HttpRequest/GenericFunctions.ts

9 lines
183 B
TypeScript
Raw Normal View History

2022-06-14 06:24:49 -07:00
import { INodeExecutionData } from 'n8n-workflow';
export const replaceNullValues = (item: INodeExecutionData) => {
if (item.json === null) {
item.json = {};
}
return item;
};