From f44b69b6079c80da98aafe9022cb68923e52a03c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 20 Nov 2025 15:51:14 -0400 Subject: data, yaml: save() -> connect(), Thing.wikiData & friends HOLY GUACAMOLE --- src/data/composite/things/track/withTrackNumber.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/data/composite/things/track/withTrackNumber.js') diff --git a/src/data/composite/things/track/withTrackNumber.js b/src/data/composite/things/track/withTrackNumber.js index 61428e8c..bb0f1366 100644 --- a/src/data/composite/things/track/withTrackNumber.js +++ b/src/data/composite/things/track/withTrackNumber.js @@ -3,25 +3,21 @@ import {input, templateCompositeFrom} from '#composite'; import {raiseOutputWithoutDependency} from '#composite/control-flow'; import {withIndexInList, withPropertiesFromObject} from '#composite/data'; -import withContainingTrackSection from './withContainingTrackSection.js'; - export default templateCompositeFrom({ annotation: `withTrackNumber`, outputs: ['#trackNumber'], steps: () => [ - withContainingTrackSection(), - // Zero is the fallback, not one, but in most albums the first track // (and its intended output by this composition) will be one. raiseOutputWithoutDependency({ - dependency: '#trackSection', + dependency: 'trackSection', output: input.value({'#trackNumber': 0}), }), withPropertiesFromObject({ - object: '#trackSection', + object: 'trackSection', properties: input.value(['tracks', 'startCountingFrom']), }), -- cgit 1.3.0-6-gf8a5