diff --git a/src/compiler/compile/render_dom/wrappers/IfBlock.ts b/src/compiler/compile/render_dom/wrappers/IfBlock.ts index 80f9ad52f6..0a09a3ffa1 100644 --- a/src/compiler/compile/render_dom/wrappers/IfBlock.ts +++ b/src/compiler/compile/render_dom/wrappers/IfBlock.ts @@ -399,7 +399,7 @@ export default class IfBlockWrapper extends Wrapper { } ` : b` - function ${select_block_type}(#changed, #ctx) { + function ${select_block_type}(#ctx, #changed) { ${this.branches.map(({ condition, snippet }, i) => condition ? b`if (${snippet || condition}) return ${i};` : b`return ${i};`)}