« get me outta code hell

content: generateTrackChronologyLinks: don't mix 1st & only - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-23 18:11:58 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-30 20:48:18 -0300
commit2da490818efebb69e576198be3a0e3c504413137 (patch)
treea553452944ee40a12377c9b15ce0c1aa2b492095 /src/content
parentf5e360738f16e328369e2f280239da069c31443d (diff)
content: generateTrackChronologyLinks: don't mix 1st & only
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateTrackChronologyLinks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateTrackChronologyLinks.js b/src/content/dependencies/generateTrackChronologyLinks.js
index 24e56698..2849d020 100644
--- a/src/content/dependencies/generateTrackChronologyLinks.js
+++ b/src/content/dependencies/generateTrackChronologyLinks.js
@@ -97,7 +97,7 @@ export default {
           .map(({artistDirectory}) => artistDirectory);
 
       albumSet.sort((a, b) =>
-        (a.index === b.index
+        (a.only === b.only && a.index === b.index
           ? (wikiArtistDirectories.indexOf(a.artistDirectory)
            - wikiArtistDirectories.indexOf(b.artistDirectory))
           : 0));