From 33944781fea780b2fdd714da45720631b7a21ba2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 7 Mar 2024 12:21:15 -0400 Subject: data: withContributionContext: guard missing dependencies --- .../things/contribution/withContributionContext.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/data/composite/things/contribution/withContributionContext.js b/src/data/composite/things/contribution/withContributionContext.js index 83ad5b73..3c1c31c0 100644 --- a/src/data/composite/things/contribution/withContributionContext.js +++ b/src/data/composite/things/contribution/withContributionContext.js @@ -1,6 +1,6 @@ import {input, templateCompositeFrom} from '#composite'; -import {withPropertiesFromObject} from '#composite/data'; +import {raiseOutputWithoutDependency} from '#composite/control-flow'; export default templateCompositeFrom({ annotation: `withContributionContext`, @@ -11,6 +11,22 @@ export default templateCompositeFrom({ ], steps: () => [ + raiseOutputWithoutDependency({ + dependency: 'thing', + output: input.value({ + '#contributionTarget': null, + '#contributionProperty': null, + }), + }), + + raiseOutputWithoutDependency({ + dependency: 'thingProperty', + output: input.value({ + '#contributionTarget': null, + '#contributionProperty': null, + }), + }), + { dependencies: ['thing', 'thingProperty'], -- cgit 1.3.0-6-gf8a5