From 142819b60caeec0b0462e504fbcc4859f65c17c4 Mon Sep 17 00:00:00 2001 From: Behrouz Babaeinezhad Date: Fri, 13 Dec 2024 16:22:07 +0100 Subject: [PATCH] Fix: Check for null values in isDict method --- projects/ngx-translate/src/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-translate/src/lib/util.ts b/projects/ngx-translate/src/lib/util.ts index 24fc21f..fa5ae22 100644 --- a/projects/ngx-translate/src/lib/util.ts +++ b/projects/ngx-translate/src/lib/util.ts @@ -56,7 +56,7 @@ export function isDefined(value: any): boolean { export function isDict(value: any): boolean { - return isObject(value) && !isArray(value); + return isObject(value) && !isArray(value) && value !== null; }