mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
🔀 Merge pull request #476 from RicardoE105/feature/spritesheet-file-node
🐛 Crashes when property value is null
This commit is contained in:
commit
135e467be9
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue