diff --git a/src/generators/nodes/EachBlock.ts b/src/generators/nodes/EachBlock.ts index 8eb8950d4c..f6b92a8f5b 100644 --- a/src/generators/nodes/EachBlock.ts +++ b/src/generators/nodes/EachBlock.ts @@ -37,6 +37,10 @@ export default class EachBlock extends Node { this.scope.add(this.context, this.expression.dependencies); this.children = mapChildren(compiler, this, this.scope, info.children); + + this.else = info.else + ? new ElseBlock(compiler, this, this.scope, info.else) + : null; } init(