« get me outta code hell

content: generateContributionTooltip: releases above tracks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-11 09:22:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-11 09:22:12 -0300
commit65c06c82a25dd2a950dab507cbe731b2ba5a5eb7 (patch)
tree84136efa0198f37e8166cc0cb9811352c9c4df0d /src/content/dependencies
parent15d6aa1a99db442a6ded481c8a3b1d16a8e6b174 (diff)
content: generateContributionTooltip: releases above tracks
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateContributionTooltip.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/content/dependencies/generateContributionTooltip.js b/src/content/dependencies/generateContributionTooltip.js
index 62c9026d..70641ddb 100644
--- a/src/content/dependencies/generateContributionTooltip.js
+++ b/src/content/dependencies/generateContributionTooltip.js
@@ -127,15 +127,6 @@ export default {
                 data.isSingleFirstTrackArtistContribution &&
                 !html.isBlank(relations.artistReleaseChronologySection)
               ) {
-                if (data.artistReleaseChronologySectionDiffers) {
-                  relations.ownChronologySection.setSlot('heading',
-                    language.$(capsule, 'heading.artistTracks', {
-                      artist: data.artistName,
-                    }));
-
-                  chronologySections.push(relations.ownChronologySection);
-                }
-
                 relations.artistReleaseChronologySection.setSlot('kind', 'release');
 
                 relations.artistReleaseChronologySection.setSlot('heading',
@@ -144,6 +135,15 @@ export default {
                   }));
 
                 chronologySections.push(relations.artistReleaseChronologySection);
+
+                if (data.artistReleaseChronologySectionDiffers) {
+                  relations.ownChronologySection.setSlot('heading',
+                    language.$(capsule, 'heading.artistTracks', {
+                      artist: data.artistName,
+                    }));
+
+                  chronologySections.push(relations.ownChronologySection);
+                }
               } else {
                 chronologySections.push(relations.ownChronologySection);
               }