Skip to content

Commit b8dcceb

Browse files
committed
fix(shared): normalize undefined styles to empty object
1 parent 06051c4 commit b8dcceb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/shared/src/normalizeProp.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export function normalizeStyle(
2424
return value
2525
} else if (isObject(value)) {
2626
return value
27+
} else if (value === null || typeof value === 'undefined') {
28+
return {}
2729
}
2830
}
2931

0 commit comments

Comments
 (0)