From 53f285e73c9a95d915fb2dbcf3333e4950984d7f Mon Sep 17 00:00:00 2001 From: Vlad Prodan <46872670+virus231@users.noreply.github.com> Date: Wed, 4 Oct 2023 00:01:09 +0200 Subject: [PATCH] Update object.helper.ts --- apps/api/src/helper/object.helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/helper/object.helper.ts b/apps/api/src/helper/object.helper.ts index 50a4f2b12..2f0399fb8 100644 --- a/apps/api/src/helper/object.helper.ts +++ b/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]);