diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/composite/wiki-data/withReverseReferenceList.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/data/composite/wiki-data/withReverseReferenceList.js b/src/data/composite/wiki-data/withReverseReferenceList.js index 70d9a58d..41d2ff20 100644 --- a/src/data/composite/wiki-data/withReverseReferenceList.js +++ b/src/data/composite/wiki-data/withReverseReferenceList.js @@ -5,7 +5,7 @@ import withReverseList_template from './helpers/withReverseList-template.js'; import {input} from '#composite'; -import {withMappedList} from '#composite/data'; +import {withPropertyFromList} from '#composite/data'; export default withReverseList_template({ annotation: `withReverseReferenceList`, @@ -14,21 +14,11 @@ export default withReverseList_template({ outputName: '#reverseReferenceList', customCompositionSteps: () => [ - { - dependencies: [input('list')], - compute: (continuation, { - [input('list')]: list, - }) => continuation({ - ['#referenceMap']: - thing => thing[list], - }), - }, - - withMappedList({ + withPropertyFromList({ list: input('data'), - map: '#referenceMap', + property: input('list'), }).outputs({ - '#mappedList': '#referencedThings', + '#values': '#referencedThings', }), { |