We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32b8b88 commit 6c081d4Copy full SHA for 6c081d4
src/utils/flatten.js
@@ -4,6 +4,7 @@ import hyphenateStyleName from './hyphenateStyleName'
4
export const objToCss = (obj, prevKey) => {
5
const css = Object.keys(obj).map(key => {
6
if (isPlainObject(obj[key])) return objToCss(obj[key], key)
7
+ if (typeof obj[key] !== 'undefined') return
8
return `${hyphenateStyleName(key)}: ${obj[key]};`
9
}).join(' ')
10
return prevKey ? `${prevKey} {
0 commit comments