diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-07 12:21:15 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:03 -0300 |
commit | b3cb1ebf85ffdf884b699fbd035bef85f89f5cbd (patch) | |
tree | 2c46d75dc473868e6b44def92464ae554832dd99 /src/data/composite/things | |
parent | d90773b9be9c2737f8962bcf2aead04b9fab9368 (diff) |
data: withContributionContext: guard missing dependencies
Diffstat (limited to 'src/data/composite/things')
-rw-r--r-- | src/data/composite/things/contribution/withContributionContext.js | 18 |
1 files changed, 17 insertions, 1 deletions
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'], |