« get me outta code hell

composite: conditionally call getStaticInputMetadata - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-07-25 17:04:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-07-25 17:04:32 -0300
commit948b6b446f413df1e1a8aa20dea854d89bd2d93b (patch)
tree8153476d0b1bd3102ec19a9f836732399d08c5b6 /src/data/composite.js
parentc06233c6e480b1966fa27c11c8b794055f9ec737 (diff)
composite: conditionally call getStaticInputMetadata
Just a tiny cleanup, behavior is the same.
Diffstat (limited to 'src/data/composite.js')
-rw-r--r--src/data/composite.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data/composite.js b/src/data/composite.js
index eb81bb4c..f31c4069 100644
--- a/src/data/composite.js
+++ b/src/data/composite.js
@@ -526,7 +526,10 @@ export function compositeFrom(description) {
         ? compositeFrom(step.toResolvedComposition())
         : step));
 
-  const inputMetadata = getStaticInputMetadata(description.inputMapping ?? {});
+  const inputMetadata =
+    (description.inputMapping
+      ? getStaticInputMetadata(description.inputMapping)
+      : {});
 
   function _mapDependenciesToOutputs(providedDependencies) {
     if (!description.outputs) {