« 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
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/composite.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js
index 700cc922..26df71ae 100644
--- a/src/data/things/composite.js
+++ b/src/data/things/composite.js
@@ -588,6 +588,10 @@ export function templateCompositeFrom(description) {
         ? description.outputs
      : typeof description.outputs === 'function'
         ? description.outputs(inputMetadata)
+            .map(name =>
+              (name.startsWith('#')
+                ? name
+                : '#' + name))
         : []);
 
     const ownUpdateDescription =
@@ -797,7 +801,9 @@ export function compositeFrom(description) {
         Object.entries(description.outputs)
           .map(([continuationName, outputName]) => [
             outputName,
-            providedDependencies[continuationName],
+            (continuationName in providedDependencies
+              ? providedDependencies[continuationName]
+              : providedDependencies[continuationName.replace(/^#/, '')]),
           ])));
   }