From f43e65bc650ba9847a5971ed6eaac18283e5cf34 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 13:11:16 -0400 Subject: data: withReverseReferenceList: use withPropertyFromList --- .../composite/wiki-data/withReverseReferenceList.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/data/composite') 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', }), { -- cgit 1.3.0-6-gf8a5