« get me outta code hell

data: commentatorArtists: filter out duplicate artists - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-18 20:16:57 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-18 20:16:57 -0400
commite35d23f4e9492b497138dce3f21382872e329e71 (patch)
treeca289ad82dd0c5026a07a5aa7975ecbfea1e0679
parent5b8060bb86d457a0d23b607aa866c4d7d6eb6f0f (diff)
data: commentatorArtists: filter out duplicate artists
-rw-r--r--src/data/composite/wiki-properties/commentatorArtists.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/data/composite/wiki-properties/commentatorArtists.js b/src/data/composite/wiki-properties/commentatorArtists.js
index 65ab1466..f400bbfc 100644
--- a/src/data/composite/wiki-properties/commentatorArtists.js
+++ b/src/data/composite/wiki-properties/commentatorArtists.js
@@ -6,7 +6,8 @@ import {unique} from '#sugar';
 
 import {exitWithoutDependency, exposeDependency}
   from '#composite/control-flow';
-import {withFlattenedList, withPropertyFromList} from '#composite/data';
+import {withFlattenedList, withPropertyFromList, withUniqueItemsOnly}
+  from '#composite/data';
 import {withParsedCommentaryEntries} from '#composite/wiki-data';
 
 export default templateCompositeFrom({
@@ -38,6 +39,10 @@ export default templateCompositeFrom({
       '#flattenedList': '#artists',
     }),
 
+    withUniqueItemsOnly({
+      list: '#artists',
+    }),
+
     exposeDependency({
       dependency: '#artists',
     }),