Skip to content

Commit

Permalink
fix(utils/object): fix normalizing error from null (#2305)
Browse files Browse the repository at this point in the history
  • Loading branch information
gordomium authored and kamilogorek committed Nov 11, 2019
1 parent 796fe36 commit 2d5188a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/object.ts
Expand Up @@ -211,7 +211,7 @@ function serializeValue(value: any): any {
*/
// tslint:disable-next-line:cyclomatic-complexity
function normalizeValue<T>(value: T, key?: any): T | string {
if (key === 'domain' && typeof value === 'object' && ((value as unknown) as { _events: any })._events) {
if (key === 'domain' && value && typeof value === 'object' && ((value as unknown) as { _events: any })._events) {
return '[Domain]';
}

Expand Down

0 comments on commit 2d5188a

Please sign in to comment.