Skip to content

Commit

Permalink
fix(shared): normalize undefined styles to empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
nVitius committed Aug 23, 2021
1 parent 06051c4 commit b8dcceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/normalizeProp.ts
Expand Up @@ -24,6 +24,8 @@ export function normalizeStyle(
return value
} else if (isObject(value)) {
return value
} else if (value === null || typeof value === 'undefined') {
return {}
}
}

Expand Down

0 comments on commit b8dcceb

Please sign in to comment.