« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/track.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/track.js')
-rw-r--r--src/page/track.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/page/track.js b/src/page/track.js
index 17e75858..960f00ce 100644
--- a/src/page/track.js
+++ b/src/page/track.js
@@ -138,6 +138,7 @@ export function write(track, {wikiData}) {
             to
         }) => {
             const generateTrackList = bindOpts(unbound_generateTrackList, {getArtistString, link, strings});
+            const cover = getTrackCover(track);
 
             return {
                 title: strings('trackPage.title', {track: track.name}),
@@ -160,8 +161,8 @@ export function write(track, {wikiData}) {
 
                 main: {
                     content: fixWS`
-                        ${generateCoverLink({
-                            src: getTrackCover(track),
+                        ${cover && generateCoverLink({
+                            src: cover,
                             alt: strings('misc.alt.trackCover'),
                             tags: track.artTags
                         })}