« get me outta code hell

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:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateChronologyLinks.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/content/dependencies/generateChronologyLinks.js b/src/content/dependencies/generateChronologyLinks.js
index 0158ffd5..bd798849 100644
--- a/src/content/dependencies/generateChronologyLinks.js
+++ b/src/content/dependencies/generateChronologyLinks.js
@@ -33,8 +33,14 @@ export default {
 
     if (!slots.showOnly) {
       infoSets = infoSets
-        .filter(({nextLink, previousLink}) =>
-          nextLink || previousLink);
+        .map(({contributions, ...entry}) => ({
+          ...entry,
+          contributions:
+            contributions
+              .filter(({nextLink, previousLink}) =>
+                nextLink || previousLink),
+        }))
+        .filter(({contributions}) => !empty(contributions));
     }
 
     const totalContributionCount =