Fix hasNotDefinedValuesInObject() in object.helper.ts (#2421)

pull/2439/head
Vlad Prodan 1 year ago committed by GitHub
parent 10940214a5
commit 4af76f6f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@ import { cloneDeep, isArray, isObject } from 'lodash';
export function hasNotDefinedValuesInObject(aObject: Object): boolean {
for (const key in aObject) {
if (aObject[key] === null || aObject[key] === null) {
if (aObject[key] === null || aObject[key] === undefined) {
return true;
} else if (isObject(aObject[key])) {
return hasNotDefinedValuesInObject(aObject[key]);

Loading…
Cancel
Save