« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateTrackChronologyLinks.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/content/dependencies/generateTrackChronologyLinks.js b/src/content/dependencies/generateTrackChronologyLinks.js
index e30dd9ba..15c2cae9 100644
--- a/src/content/dependencies/generateTrackChronologyLinks.js
+++ b/src/content/dependencies/generateTrackChronologyLinks.js
@@ -116,12 +116,12 @@ export default {
     ];
 
     const totalContributionCount =
-      accumulateSum(
-        contents.flatMap(content => [
-          content.artistChronologyContributions,
-          content.coverArtistChronologyContributions,
-        ]),
-        contributions => contributions.length);
+      Math.max(...
+        contents.map(content =>
+          accumulateSum([
+            content.artistChronologyContributions,
+            content.coverArtistChronologyContributions,
+          ], contributions => contributions.length)));
 
     relations.scopeSwitcher.setSlots({
       scopes,