diff --git a/src/compiler/compile/render_dom/wrappers/shared/add_actions.ts b/src/compiler/compile/render_dom/wrappers/shared/add_actions.ts index 6ca7de9a22..20683f1c2a 100644 --- a/src/compiler/compile/render_dom/wrappers/shared/add_actions.ts +++ b/src/compiler/compile/render_dom/wrappers/shared/add_actions.ts @@ -48,7 +48,7 @@ export function add_action(block: Block, target: string, action: Action) { } block.chunks.update.push( - b`if (${condition}) ${id}.update.call(null, ${snippet});` + b`if (${condition}) ${id}.update(${snippet});` ); } }