I’m running self-hosted n8n via docker and trying to delete the null values from the input data. I searched the forum and found this, but for the life of me, I can’t get it to work without throwing an error.
for (const key in item) {
if(item[key]===null){
delete item[key];
}
}
return item;
Glad it worked. Please post a workflow using the </> button next time.
It is not easy to guess what’s going on without seeing the actual workflow and maybe even some data.