« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js b/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
index b2f50cf3..f7f455c1 100644
--- a/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
+++ b/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
@@ -23,15 +23,16 @@ export default {
         [language.onlyIfOptions]: ['tracks'],
 
         tracks:
-          stitchArrays({
-            trackLink: relations.trackLinks,
-            albumLink: relations.albumLinks,
-          }).map(({trackLink, albumLink}) =>
-              (albumLink
-                ? language.$(capsule, 'trackOnAlbum', {
-                    track: trackLink,
-                    album: albumLink,
-                  })
-                : trackLink)),
+          language.formatConjunctionList(
+            stitchArrays({
+              trackLink: relations.trackLinks,
+              albumLink: relations.albumLinks,
+            }).map(({trackLink, albumLink}) =>
+                (albumLink
+                  ? language.$(capsule, 'trackOnAlbum', {
+                      track: trackLink,
+                      album: albumLink,
+                    })
+                  : trackLink))),
       })),
 };