Skip to content

Commit 2bf1595

Browse files
authored
Merge pull request #13 from vectorsize/master
Avoids mutating the original styles object
2 parents 3a4bbc3 + 554b5fc commit 2bf1595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/themr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function themeable(style = {}, theme) {
8989
style[key] && theme[key].indexOf(style[key]) === -1
9090
? `${style[key]} ${theme[key]}`
9191
: theme[key] || style[key]
92-
})), style)
92+
})), Object.assign({}, style))
9393
}
9494

9595
function validateComposeOption(composeTheme) {

0 commit comments

Comments
 (0)