mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Crashes when property value is null
This commit is contained in:
@@ -28,7 +28,7 @@ import {
|
||||
function flattenObject (data: IDataObject) {
|
||||
const returnData: IDataObject = {};
|
||||
for (const key1 of Object.keys(data)) {
|
||||
if ((typeof data[key1]) === 'object') {
|
||||
if (data[key1] !== null && (typeof data[key1]) === 'object') {
|
||||
const flatObject = flattenObject(data[key1] as IDataObject);
|
||||
for (const key2 in flatObject) {
|
||||
if (flatObject[key2] === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user