From 5b16090a206db99a266fcc006921782b37f8d1a0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 13:30:05 -0400 Subject: data: general withReverse{*}List logic tidying --- src/data/composite/wiki-data/withReverseContributionList.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/data/composite/wiki-data/withReverseContributionList.js') 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', }), -- cgit 1.3.0-6-gf8a5