« get me outta code hell

fix contributed songs showing up when also artist - 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:
authorFlorrie <towerofnix@gmail.com>2019-11-16 18:24:59 -0400
committerFlorrie <towerofnix@gmail.com>2019-11-16 18:24:59 -0400
commitc765eda6fb33ff7449d3ce6f958a1210ef8b25df (patch)
tree40284cf9145ee9d47b58fde2ba45f37a2c23b664 /upd8.js
parentc32d860358d2dfd3370a0973418c11186e5ce7c1 (diff)
fix contributed songs showing up when also artist
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 8890a5c..7e811cd 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(', ');
                                 }