diff options
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 |
commit | e35d23f4e9492b497138dce3f21382872e329e71 (patch) | |
tree | ca289ad82dd0c5026a07a5aa7975ecbfea1e0679 /src | |
parent | 5b8060bb86d457a0d23b607aa866c4d7d6eb6f0f (diff) |
data: commentatorArtists: filter out duplicate artists
Diffstat (limited to 'src')
-rw-r--r-- | src/data/composite/wiki-properties/commentatorArtists.js | 7 |
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', }), |