diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 13:30:05 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 13:30:05 -0400 |
commit | 5b16090a206db99a266fcc006921782b37f8d1a0 (patch) | |
tree | bf25b80945537886bf5f4ce7d54acb2f94015cc7 /src/data/composite/wiki-data/withReverseContributionList.js | |
parent | 8c35533c5865077ab73657a2104f08709ba6c4e0 (diff) |
data: general withReverse{*}List logic tidying
Diffstat (limited to 'src/data/composite/wiki-data/withReverseContributionList.js')
-rw-r--r-- | src/data/composite/wiki-data/withReverseContributionList.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/data/composite/wiki-data/withReverseContributionList.js b/src/data/composite/wiki-data/withReverseContributionList.js index 2396c3b4..04dc52d7 100644 --- a/src/data/composite/wiki-data/withReverseContributionList.js +++ b/src/data/composite/wiki-data/withReverseContributionList.js @@ -27,9 +27,14 @@ export default withReverseList_template({ '#flattenedList': '#referencingThings', }), - withMappedList({ + withPropertyFromList({ list: '#referencingThings', - map: input.value(contrib => [contrib.artist]), + property: input.value('artist'), + }), + + withMappedList({ + list: '#referencingThings.artist', + map: input.value(artist => [artist]), }).outputs({ '#mappedList': '#referencedThings', }), |