diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateTrackChronologyLinks.js | 12 |
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, |