« get me outta code hell

filter unlisted albums from group sources on home - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-03-05 23:16:48 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-03-05 23:16:48 -0400
commita21cba2433f3bea21c7d5d97be7165b55e10b1eb (patch)
treeb3a5bc851d80ed6b12cc8673f04a89a0f12b63fc /src/page
parent3ea798f1cdc84f5e22517df93f83f4dbbddc5372 (diff)
filter unlisted albums from group sources on home
Diffstat (limited to 'src/page')
-rw-r--r--src/page/homepage.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/page/homepage.js b/src/page/homepage.js
index aa99527c..8b470e9b 100644
--- a/src/page/homepage.js
+++ b/src/page/homepage.js
@@ -50,6 +50,7 @@ export function writeTargetless({wikiData}) {
                                             ((row.sourceGroup?.albums ?? [])
                                                 .slice()
                                                 .reverse()
+                                                .filter(album => album.isListedOnHomepage)
                                                 .slice(0, row.countAlbumsFromGroup)
                                                 .map(album => ({item: album})))
                                         ).concat(row.sourceAlbums.map(album => ({item: album}))),