fix(HTTP Request Node): Fix issue with requests that return null (#3498)

*  fix

*   Remove null values at node level

* 🔥 Remove unused imports

*  Small change

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
Michael Kret
2022-06-13 23:25:09 +03:00
committed by GitHub
parent 57d466850a
commit 7346da0b34
2 changed files with 13 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
import { INodeExecutionData } from "n8n-workflow";
export const replaceNullValues = (item: INodeExecutionData) => {
if (item.json === null) {
item.json = {};
}
return item;
};