diff --git a/packages/builder/src/pages/[application]/_layout.svelte b/packages/builder/src/pages/[application]/_layout.svelte index 35e629974a..d80c542f40 100644 --- a/packages/builder/src/pages/[application]/_layout.svelte +++ b/packages/builder/src/pages/[application]/_layout.svelte @@ -2,7 +2,7 @@ import { store } from "builderStore" import { fade } from "svelte/transition" - import { isActive, goto, url, layout } from "@sveltech/routify" + import { isActive, goto, context } from "@sveltech/routify" import { SettingsIcon, PreviewIcon } from "components/common/Icons/" import IconButton from "components/common/IconButton.svelte" @@ -23,6 +23,8 @@ throw new Error(pkg) } } + $: ({ component } = $context) + $: list = component.parent.children.filter(child => child.isIndexable)
@@ -35,12 +37,12 @@ alt="budibase icon" /> - - {#each $layout.children as { path, prettyName, children, meta }} + + {#each list as { path, prettyName, children, meta }} $goto($url(path))}> + on:click={() => $goto(path)}> {prettyName} {/each} @@ -50,9 +52,9 @@
$goto(`${component.parent.path}/settings`)}> + on:click={() => $goto(`/settings`)}>