summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-30 15:53:08 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-30 15:53:33 -0300
commitdf12ad88b3fdaf78b3fb327c20be0601f2e694f9 (patch)
treef907de9f6f90aed6055fa064839776594090b0d3
parent0d0d38ce51ca02b7c3bd91317b5fa0bbff1f06de (diff)
treat sibling-direction AKA as other releases
-rwxr-xr-xupd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 66582f1..6b153b0 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));