Skip to content

Commit 2b6f3a1

Browse files
author
Gitlab-CI
committed
fix(toMakeTheme): deep merge into a new object instead of theme
1 parent d25772f commit 2b6f3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import deepMerge from 'lodash.merge';
3737
* });
3838
*/
3939
export const toMakeTheme = (theme) => (userTheme) => { // eslint-disable-line arrow-body-style
40-
return deepMerge(theme, userTheme);
40+
return deepMerge({}, theme, userTheme);
4141
};
4242

4343
function makeThemeFromList(list, theme) {

0 commit comments

Comments
 (0)