Null check
This commit is contained in:
parent
9818bad95e
commit
b6f502b633
@ -136,7 +136,7 @@
|
||||
Object.keys(obj).forEach(key => {
|
||||
if (typeof obj[key] === 'string' && obj[key] === '') {
|
||||
obj[key] = null;
|
||||
} else if (typeof obj[key] === 'object') {
|
||||
} else if (typeof obj[key] === 'object' && obj[key] !== null && obj[key] !== undefined) {
|
||||
mapper(obj[key]);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user