Skip to content

Commit

Permalink
Merge pull request #1511 from Behrouz-B/bugfix/fix-isDict-method
Browse files Browse the repository at this point in the history
Fix: Check for null values in isDict method
  • Loading branch information
CodeAndWeb authored Dec 18, 2024
2 parents 04a2116 + 142819b commit 941c6bc
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 941c6bc

Please sign in to comment.