From 9c3f0a79ee38ee5a13617ed0406d42e579ed49f3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 25 Nov 2025 16:08:30 -0400 Subject: data: Track: chop withMainReleaseTrack probably contains normative changes re: dropping notFoundValue behavior in properties which inherit from main release, but has no effect on good wiki data and maybe those compositions resolve the same anyway... --- .../composite/things/track/inheritFromMainRelease.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/data/composite/things/track/inheritFromMainRelease.js') diff --git a/src/data/composite/things/track/inheritFromMainRelease.js b/src/data/composite/things/track/inheritFromMainRelease.js index b1cbb65e..32a3165d 100644 --- a/src/data/composite/things/track/inheritFromMainRelease.js +++ b/src/data/composite/things/track/inheritFromMainRelease.js @@ -1,10 +1,6 @@ // Early exits with the value for the same property as specified on the // main release, if this track is a secondary release, and otherwise continues // without providing any further dependencies. -// -// Like withMainRelease, this will early exit (with notFoundValue) if the -// main release is specified by reference and that reference doesn't -// resolve to anything. import {input, templateCompositeFrom} from '#composite'; @@ -17,21 +13,14 @@ import withPropertyFromMainRelease export default templateCompositeFrom({ annotation: `inheritFromMainRelease`, - inputs: { - notFoundValue: input({ - defaultValue: null, + steps: () => [ + raiseOutputWithoutDependency({ + dependency: 'isSecondaryRelease', + mode: input.value('falsy'), }), - }, - steps: () => [ withPropertyFromMainRelease({ property: input.thisProperty(), - notFoundValue: input('notFoundValue'), - }), - - raiseOutputWithoutDependency({ - dependency: '#isSecondaryRelease', - mode: input.value('falsy'), }), exposeDependency({ -- cgit 1.3.0-6-gf8a5