From 841d0c2311bcd8e93aa0765aa89e14060b1c643a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Jun 2023 17:41:40 -0300 Subject: content: fix generateAlbumTrackList computing unneeded data --- src/content/dependencies/generateAlbumTrackList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateAlbumTrackList.js b/src/content/dependencies/generateAlbumTrackList.js index 7734cda5..89ccd04b 100644 --- a/src/content/dependencies/generateAlbumTrackList.js +++ b/src/content/dependencies/generateAlbumTrackList.js @@ -67,7 +67,7 @@ export default { data.hasTrackNumbers = album.hasTrackNumbers; - if (displayTrackSections && !empty(album.trackSections)) { + if (displayTrackSections(album)) { data.trackSectionInfo = album.trackSections.map(section => { const info = {}; -- cgit 1.3.0-6-gf8a5