diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 32af20c12c..1b843e9ca2 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -826,6 +826,7 @@ export default class Component { declarators: [declarator], insert: get_insert(variable) }); + current_group = null; } else { if (current_group && current_group.kind !== node.kind) { current_group = null;