From 0db3ac0e5e7e80f2268bf94f897ff442a4c8c855 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 19 May 2024 22:55:15 -0300 Subject: data: TrackSection.directory, find.trackSection, etc --- src/data/composite/things/album/withTracks.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/data/composite/things/album') diff --git a/src/data/composite/things/album/withTracks.js b/src/data/composite/things/album/withTracks.js index 05f5b24d..3fe6dd2e 100644 --- a/src/data/composite/things/album/withTracks.js +++ b/src/data/composite/things/album/withTracks.js @@ -1,8 +1,10 @@ import {input, templateCompositeFrom} from '#composite'; -import {exitWithoutDependency, raiseOutputWithoutDependency} - from '#composite/control-flow'; +import find from '#find'; + +import {exitWithoutDependency} from '#composite/control-flow'; import {withFlattenedList, withPropertyFromList} from '#composite/data'; +import {withResolvedReferenceList} from '#composite/wiki-data'; export default templateCompositeFrom({ annotation: `withTracks`, @@ -10,15 +12,16 @@ export default templateCompositeFrom({ outputs: ['#tracks'], steps: () => [ - raiseOutputWithoutDependency({ - dependency: 'trackSections', - output: input.value({ - '#tracks': [], - }), + withResolvedReferenceList({ + list: 'trackSections', + data: 'ownTrackSectionData', + find: input.value(find.unqualifiedTrackSection), + }).outputs({ + ['#resolvedReferenceList']: '#trackSections', }), withPropertyFromList({ - list: 'trackSections', + list: '#trackSections', property: input.value('tracks'), }), -- cgit 1.3.0-6-gf8a5