« get me outta code hell

data: Thing.composite.from: fix missed step.expose assumptions - 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:
author(quasar) nebula <qznebula@protonmail.com>2023-08-31 16:05:53 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:02:55 -0300
commitf3162203ef1f758d500e065804f9dbe478d0481d (patch)
treec569e0ea72277407e8c0b4df7249d2ca6bdd7464 /src/data
parent5a63b96cfd3d26e4b74ff4c6dfc793aef057f81b (diff)
data: Thing.composite.from: fix missed step.expose assumptions
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/thing.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index 751e168f..d4d7c850 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -993,7 +993,7 @@ export default class Thing extends CacheableObject {
             debug(() => color.bright(`begin composition - not transforming`));
           }
 
-          stepLoop: for (let i = 0; i < steps.length; i++) {
+          for (let i = 0; i < steps.length; i++) {
             const step = steps[i];
             const isBase = i === steps.length - 1;
 
@@ -1021,8 +1021,8 @@ export default class Thing extends CacheableObject {
 
             const result =
               (callingTransformForThisStep
-                ? step.expose.transform(valueSoFar, filteredDependencies, continuation)
-                : step.expose.compute(filteredDependencies, continuation));
+                ? expose.transform(valueSoFar, filteredDependencies, continuation)
+                : expose.compute(filteredDependencies, continuation));
 
             if (result !== continuationSymbol) {
               debug(() => [`step #${i+1} - result: exit (inferred) ->`, result]);