From c55764a1f4d7903ed149b6491d9def8064c9e2ac Mon Sep 17 00:00:00 2001
From: "(quasar) nebula"
Date: Sat, 5 Mar 2022 20:43:49 -0400
Subject: Don't show default track group on album pages
---
src/page/album.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/page')
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})))
})
}
`}
- ${album.trackGroups ? fixWS`
+ ${album.trackGroups && (album.trackGroups.length > 1 || !album.trackGroups[0].isDefaultTrackGroup) ? fixWS`
${album.trackGroups.map(({ name, color, startIndex, tracks }) => fixWS`
- ${
--
cgit 1.3.0-6-gf8a5