fix `parent_component is undefined`

pull/6950/head
木杉 5 years ago
parent 03ef0e46e9
commit 3e17f04b4c

@ -130,7 +130,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
callbacks: blank_object(), callbacks: blank_object(),
dirty, dirty,
skip_bound: false, skip_bound: false,
root: options.target || parent_component.$$.root root: options.target || parent_component?.$$.root
}; };
append_styles && append_styles($$.root); append_styles && append_styles($$.root);

Loading…
Cancel
Save