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
1 changed files with 1 additions and 3 deletions

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}