« get me outta code hell

data: miscellaneous syntax fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/composite.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-21 14:37:36 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-21 14:37:36 -0300
commite3e8a904c24e71f303a1f29c8f1700478d929901 (patch)
tree80c2b7e2c765319ed02efc793aa6fe3167a6f8ad /src/data/things/composite.js
parentee3b52cfe889eb514f5d6a5f78297875f278e206 (diff)
data: miscellaneous syntax fixes
Diffstat (limited to 'src/data/things/composite.js')
-rw-r--r--src/data/things/composite.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js
index 40f4fc16..38b7bcc9 100644
--- a/src/data/things/composite.js
+++ b/src/data/things/composite.js
@@ -2073,7 +2073,7 @@ export const withFlattenedList = templateCompositeFrom({
         const flattenedList = sourceList.flat();
         const indices = [];
         let lastEndIndex = 0;
-        for (const {length} of sourceArray) {
+        for (const {length} of sourceList) {
           indices.push(lastEndIndex);
           lastEndIndex += length;
         }
@@ -2116,8 +2116,8 @@ export const withUnflattenedList = templateCompositeFrom({
 
   steps: () => [
     {
-      dependencies: [input('list'), input('indices')],
-      compute({
+      dependencies: [input('list'), input('indices'), input('filter')],
+      compute(continuation, {
         [input('list')]: list,
         [input('indices')]: indices,
         [input('filter')]: filter,