Skip to content

Commit 142819b

Browse files
committed
Fix: Check for null values in isDict method
1 parent 04a2116 commit 142819b

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

Lines changed: 1 addition & 1 deletion
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)