« 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/generateArtistGroupContributionsInfo.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/content/dependencies/generateArtistGroupContributionsInfo.js b/src/content/dependencies/generateArtistGroupContributionsInfo.js
index 80a1b7ad..e1fa7a0b 100644
--- a/src/content/dependencies/generateArtistGroupContributionsInfo.js
+++ b/src/content/dependencies/generateArtistGroupContributionsInfo.js
@@ -50,13 +50,11 @@ export default {
 
     const groupsSortedByCount =
       allGroupsOrdered
-        .slice()
+        .filter(group => groupToTotalContributions.get(group) > 0)
         .sort((a, b) =>
           (groupToTotalContributions.get(b)
          - groupToTotalContributions.get(a)));
 
-    // The filter here ensures all displayed groups have at least some duration
-    // when sorting by duration.
     const groupsSortedByDuration =
       allGroupsOrdered
         .filter(group => groupToTotalDuration.get(group) > 0)