« 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
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateAlbumSidebar.js23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/content/dependencies/generateAlbumSidebar.js b/src/content/dependencies/generateAlbumSidebar.js
index f014139c..355a9a9a 100644
--- a/src/content/dependencies/generateAlbumSidebar.js
+++ b/src/content/dependencies/generateAlbumSidebar.js
@@ -28,19 +28,20 @@ export default {
   generate: (data, relations) =>
     relations.sidebar.slots({
       boxes: [
+        data.isAlbumPage &&
+          relations.groupBoxes
+            .map(box => box.slot('mode', 'album')),
+
         relations.trackListBox,
 
-        (data.isAlbumPage
-          ? relations.groupBoxes
-              .map(box => box.slot('mode', 'album'))
-
-          : relations.conjoinedBox.slots({
-              attributes: {class: 'conjoined-group-sidebar-box'},
-              boxes:
-                relations.groupBoxes
-                  .map(box => box.slot('mode', 'track'))
-                  .map(box => box.content), /* TODO: Kludge. */
-            })),
+        !data.isAlbumPage &&
+          relations.conjoinedBox.slots({
+            attributes: {class: 'conjoined-group-sidebar-box'},
+            boxes:
+              relations.groupBoxes
+                .map(box => box.slot('mode', 'track'))
+                .map(box => box.content), /* TODO: Kludge. */
+          }),
       ],
     }),
 };