Browse Source

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

pull/2439/head
Vlad Prodan 1 year ago
committed by GitHub
parent
commit
4af76f6f6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/api/src/helper/object.helper.ts

2
apps/api/src/helper/object.helper.ts

@ -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