From 4af76f6f6d050feb18f837afb08e089beda11597 Mon Sep 17 00:00:00 2001 From: Vlad Prodan <46872670+virus231@users.noreply.github.com> Date: Thu, 5 Oct 2023 20:29:34 +0200 Subject: [PATCH] Fix hasNotDefinedValuesInObject() in object.helper.ts (#2421) --- 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]);