From c6ff10432578c4429a815111d9b9a3ef2b7f6896 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 10 Nov 2021 01:48:09 +0100 Subject: [PATCH] Fix hidden theme count --- UI/BigComponents/MoreScreen.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UI/BigComponents/MoreScreen.ts b/UI/BigComponents/MoreScreen.ts index 1432dade7..6e5cbd988 100644 --- a/UI/BigComponents/MoreScreen.ts +++ b/UI/BigComponents/MoreScreen.ts @@ -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 }