1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Ensure screen is correctly set when selecting a child component.

This commit is contained in:
pngwn 2020-01-24 15:34:02 +00:00
parent 1a4aa7ddf1
commit a5d1b7a651

View file

@ -20,8 +20,6 @@ import { store } from "../builderStore";
export let components = []
let _components;
const joinPath = join("/");
const normalizedName = name => pipe(name, [
@ -87,7 +85,7 @@ function select_component(screen, component) {
</div>
{#if component.component.props && component.component.props._children}
<ComponentsHierarchyChildren components={component.component.props._children}
onSelect={component =>select_component(component.component.name, component)} />
onSelect={child => select_component(component.component.name, child)} />
{/if}
{/each}