Skip to content

Commit

Permalink
Fix: Check for null values in isDict method
Browse files Browse the repository at this point in the history
  • Loading branch information
Behrouz-B committed Dec 13, 2024
1 parent 04a2116 commit 142819b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-translate/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 142819b

Please sign in to comment.