n8n/packages/nodes-base/nodes/HttpRequest/GenericFunctions.ts
Jan Oberhauser 2ebcf4bb91 👕 Fix lint issue
2022-06-14 06:24:49 -07:00

9 lines
183 B
TypeScript

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