« 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/things/composite.js
diff options
context:
space:
mode:
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,