diff --git a/packages/builder/src/components/userInterface/ComponentNavigationTree/ComponentTree.svelte b/packages/builder/src/components/userInterface/ComponentNavigationTree/ComponentTree.svelte index a9771f9f9..ae7118a88 100644 --- a/packages/builder/src/components/userInterface/ComponentNavigationTree/ComponentTree.svelte +++ b/packages/builder/src/components/userInterface/ComponentNavigationTree/ComponentTree.svelte @@ -24,11 +24,12 @@ const path = store.actions.components.findRoute(component) // Go to correct URL - if (layout) { - $goto(`./layouts/:layout/${path}`) - } else { - $goto(`./screens/:screen/${path}`) - } + $goto(`./${path}`) + // if (layout) { + // $goto(`./layouts/:layout/${path}`) + // } else { + // $goto(`./screens/:screen/${path}`) + // } } const dragstart = component => e => { diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte index a6f1d6fea..aa468b887 100644 --- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte @@ -28,6 +28,7 @@ store.actions.components.create(component._component, component.presetProps) const path = store.actions.components.findRoute($store.currentComponentInfo) $goto(`./:screen/${path}`) + // $goto(`./${path}`) close() } @@ -39,9 +40,13 @@ class="category" on:click={() => onCategoryChosen(category, idx)} class:active={idx === selectedIndex}> - {#if category.icon}{/if} + {#if category.icon} + + {/if} {category.name} - {#if category.isCategory}{/if} + {#if category.isCategory} + + {/if} {/each}