« 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:
-rwxr-xr-xupd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 66582f17..6b153b05 100755
--- a/upd8.js
+++ b/upd8.js
@@ -6185,8 +6185,8 @@ async function main() {
 
     trackData.forEach(track => track.otherReleases = [
         track.aka,
-        ...trackData.filter(({ aka }) => aka === track)
-    ].filter(Boolean));
+        ...trackData.filter(({ aka }) => aka === track || (track.aka && aka === track.aka)),
+    ].filter(x => x && x !== track));
 
     if (wikiInfo.features.flashesAndGames) {
         flashData.forEach(flash => mapInPlace(flash.tracks, search.track));