« get me outta code hell

Don't show default track group on album pages - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-03-05 20:43:49 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-03-05 20:43:49 -0400
commitc55764a1f4d7903ed149b6491d9def8064c9e2ac (patch)
treeea0c5a19cbe61c025d73ce6fde5bdf87d4104864 /src
parent82bd55a11af3990081bc289c6bfd2c2aa1dc9a3b (diff)
Don't show default track group on album pages
Diffstat (limited to 'src')
-rw-r--r--src/page/album.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/page/album.js b/src/page/album.js
index 23a974c8..f7df2648 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -186,7 +186,7 @@ export function write(album, {wikiData}) {
                                 links: strings.list.or(album.urls.map(url => fancifyURL(url, {album: true})))
                             })
                         }</p>`}
-                        ${album.trackGroups ? fixWS`
+                        ${album.trackGroups && (album.trackGroups.length > 1 || !album.trackGroups[0].isDefaultTrackGroup) ? fixWS`
                             <dl class="album-group-list">
                                 ${album.trackGroups.map(({ name, color, startIndex, tracks }) => fixWS`
                                     <dt>${