« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackInfoPageContent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPageContent.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPageContent.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/content/dependencies/generateTrackInfoPageContent.js b/src/content/dependencies/generateTrackInfoPageContent.js
index ed2662e..c3a1c05 100644
--- a/src/content/dependencies/generateTrackInfoPageContent.js
+++ b/src/content/dependencies/generateTrackInfoPageContent.js
@@ -19,11 +19,12 @@ export default {
 
   sprawl({wikiInfo}) {
     return {
+      divideTrackListsByGroups: wikiInfo.divideTrackListsByGroups,
       enableFlashesAndGames: wikiInfo.enableFlashesAndGames,
     };
   },
 
-  relations(relation, sprawl, track, {topLevelGroups}) {
+  relations(relation, sprawl, track) {
     const {album} = track;
 
     const relations = {};
@@ -126,7 +127,7 @@ export default {
       referencedBy.list =
         relation('generateTrackListDividedByGroups',
           track.referencedByTracks,
-          topLevelGroups);
+          sprawl.divideTrackListsByGroups);
     }
 
     // Section: Sampled tracks
@@ -152,7 +153,7 @@ export default {
       sampledBy.list =
         relation('generateTrackListDividedByGroups',
           track.sampledByTracks,
-          topLevelGroups);
+          sprawl.divideTrackListsByGroups);
     }
 
     // Section: Flashes that feature