« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite')
-rw-r--r--src/data/composite/things/contribution/withContributionContext.js18
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'],