« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 8890a5cb..7e811cd5 100644
--- a/upd8.js
+++ b/upd8.js
@@ -650,7 +650,7 @@ async function writeArtistPage(artistName, albumData) {
                                         ...getTracksReferencedBy(track, allTracks).filter(track => track.artists.includes(artistName)).map(track => `[${track.name}]`)
                                     ].filter(Boolean).join(', ')
                                 };
-                                if (contrib.length && track.artists.includes(artistName)) {
+                                if (contrib.what && track.artists.includes(artistName)) {
                                     const nonTracks = contrib.what.split(',').map(what => what.trim()).filter(what => !(what.startsWith('[') && what.endsWith(']')));
                                     contrib.what = nonTracks.join(', ');
                                 }