« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite/wiki-data')
-rw-r--r--src/data/composite/wiki-data/withReverseContributionList.js19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/data/composite/wiki-data/withReverseContributionList.js b/src/data/composite/wiki-data/withReverseContributionList.js
index dcf33c39..2396c3b4 100644
--- a/src/data/composite/wiki-data/withReverseContributionList.js
+++ b/src/data/composite/wiki-data/withReverseContributionList.js
@@ -4,7 +4,8 @@ import withReverseList_template from './helpers/withReverseList-template.js';
 
 import {input} from '#composite';
 
-import {withFlattenedList, withMappedList} from '#composite/data';
+import {withFlattenedList, withMappedList, withPropertyFromList}
+  from '#composite/data';
 
 export default withReverseList_template({
   annotation: `withReverseContributionList`,
@@ -13,21 +14,11 @@ export default withReverseList_template({
   outputName: '#reverseContributionList',
 
   customCompositionSteps: () => [
-    {
-      dependencies: [input('list')],
-      compute: (continuation, {
-        [input('list')]: list,
-      }) => continuation({
-        ['#contributionListMap']:
-          thing => thing[list],
-      }),
-    },
-
-    withMappedList({
+    withPropertyFromList({
       list: input('data'),
-      map: '#contributionListMap',
+      property: input('list'),
     }).outputs({
-      '#mappedList': '#contributionLists',
+      '#values': '#contributionLists',
     }),
 
     withFlattenedList({