optional chaining
This commit is contained in:
parent
59f3ca65ca
commit
cf85b00c0a
26 changed files with 34 additions and 34 deletions
|
|
@ -790,7 +790,7 @@ export const normalizeThemeData = (input) => {
|
|||
// New theme presets don't have 'theme' property, they use 'source'
|
||||
|
||||
let out // shout, shout let it all out
|
||||
if (themeSource && themeSource.themeEngineVersion === CURRENT_VERSION) {
|
||||
if (themeSource?.themeEngineVersion === CURRENT_VERSION) {
|
||||
// There are some themes in wild that have completely broken source
|
||||
out = { ...(themeData || {}), ...themeSource }
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue