« get me outta code hell

content: fix generateAlbumTrackList computing unneeded data - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-24 17:41:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-24 17:41:40 -0300
commit841d0c2311bcd8e93aa0765aa89e14060b1c643a (patch)
tree6631c32c0baff20f648990b66b3b2fd7ccaf5250 /src/content
parent324b74cef03ca5f21e938ed3bb9a43e564b377fa (diff)
content: fix generateAlbumTrackList computing unneeded data
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateAlbumTrackList.js2
1 files changed, 1 insertions, 1 deletions
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 = {};