diff options
-rw-r--r-- | src/content/dependencies/generateChronologyLinks.js | 10 |
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 = |