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)
|
const knownThemes = Utils.NoNull(Object.keys(allPreferences)
|
||||||
.filter(key => key.startsWith(prefix))
|
.filter(key => key.startsWith(prefix))
|
||||||
.map(key => key.substring(prefix.length, key.length - "-enabled".length))
|
.map(key => key.substring(prefix.length, key.length - "-enabled".length))
|
||||||
.map(theme => {
|
.map(theme => AllKnownLayouts.allKnownLayouts.get(theme)))
|
||||||
return AllKnownLayouts.allKnownLayouts.get(theme);
|
.filter(theme => theme?.hideFromOverview)
|
||||||
}))
|
|
||||||
if (knownThemes.length === 0) {
|
if (knownThemes.length === 0) {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue