Fix indexes in script

This commit is contained in:
Pieter Vander Vennet 2023-11-13 12:15:27 +01:00
parent 3334bfb8ca
commit b80a41245c
2 changed files with 12 additions and 1 deletions

View file

@ -110,7 +110,7 @@ export class Each<X, Y> extends Conversion<X[], Y[]> {
values[i]?.["id"] !== undefined ? values[i]?.["id"] : ""
)
}
const context_ = c.enter(i - 1)
const context_ = c.enter(i)
const r = step.convert(values[i], context_)
result.push(r)
}