diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte index 05a3163911..72e91d0600 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte @@ -49,7 +49,6 @@ } const changeScreen = screen => { - console.log("Screen: ", screen) store.setCurrentScreen(screen.title) $goto(`./:page/${screen.title}`) } @@ -82,7 +81,6 @@ + import { store } from "builderStore" import { last } from "lodash/fp" import { pipe } from "../common/core" import { @@ -16,6 +17,7 @@ export let onMoveUpComponent export let onMoveDownComponent export let onCopyComponent + export let ids = [] const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1) const get_name = s => (!s ? "" : last(s.split("/"))) @@ -28,11 +30,15 @@ return onMoveDownComponent(c) } } + + const selectComponent = (ids, component) => { + store.selectComponent(component) + }