Fix hidden theme count
This commit is contained in:
parent
15a1ab19cd
commit
c6ff104325
1 changed files with 2 additions and 3 deletions
|
@ -129,9 +129,8 @@ export default class MoreScreen extends Combine {
|
|||
const knownThemes = Utils.NoNull(Object.keys(allPreferences)
|
||||
.filter(key => key.startsWith(prefix))
|
||||
.map(key => key.substring(prefix.length, key.length - "-enabled".length))
|
||||
.map(theme => {
|
||||
return AllKnownLayouts.allKnownLayouts.get(theme);
|
||||
}))
|
||||
.map(theme => AllKnownLayouts.allKnownLayouts.get(theme)))
|
||||
.filter(theme => theme?.hideFromOverview)
|
||||
if (knownThemes.length === 0) {
|
||||
return undefined
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue