« 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/util/getChronologyRelations.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/util/getChronologyRelations.js')
-rw-r--r--src/content/util/getChronologyRelations.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/util/getChronologyRelations.js b/src/content/util/getChronologyRelations.js
index cdfdef39..4b7d9ce5 100644
--- a/src/content/util/getChronologyRelations.js
+++ b/src/content/util/getChronologyRelations.js
@@ -5,7 +5,7 @@ export default function getChronologyRelations(thing, {
   getThings,
 }) {
   return contributions.map(({who}) => {
-    const things = getThings(who);
+    const things = Array.from(new Set(getThings(who)));
     const index = things.indexOf(thing);
     const previous = things[index - 1];
     const next = things[index + 1];