Skip to content

Commit 941c6bc

Browse files
authored
Merge pull request #1511 from Behrouz-B/bugfix/fix-isDict-method
Fix: Check for null values in isDict method
2 parents 04a2116 + 142819b commit 941c6bc

File tree

1 file changed

+1
-1
lines changed
  • projects/ngx-translate/src/lib

1 file changed

+1
-1
lines changed

projects/ngx-translate/src/lib/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function isDefined(value: any): boolean {
5656

5757

5858
export function isDict(value: any): boolean {
59-
return isObject(value) && !isArray(value);
59+
return isObject(value) && !isArray(value) && value !== null;
6060
}
6161

6262

0 commit comments

Comments
 (0)