Resolve #6170
This commit is contained in:
parent
c6c62f956b
commit
e2c0ee66e4
7 changed files with 318 additions and 10 deletions
|
|
@ -44,7 +44,7 @@ export function applyTheme(theme: Theme, persist = true) {
|
|||
const _theme = JSON.parse(JSON.stringify(theme));
|
||||
|
||||
if (_theme.base) {
|
||||
const base = [lightTheme, darkTheme].find(x => x.id == _theme.base);
|
||||
const base = [lightTheme, darkTheme].find(x => x.id === _theme.base);
|
||||
_theme.props = Object.assign({}, base.props, _theme.props);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue