fix layout selection issues

This commit is contained in:
Martin McKeaveney 2020-12-07 16:06:20 +00:00
parent 4ddc61faa3
commit bc6ae452d1
3 changed files with 3 additions and 1 deletions

View File

@ -226,6 +226,7 @@ export const getFrontendStore = () => {
state.layouts.push(layoutToSave)
}
state.selectedComponentId = layoutToSave._id
return state
})
},

View File

@ -1,6 +1,7 @@
<script>
import { get } from "svelte/store"
import { store, selectedComponent, currentAsset } from "builderStore"
import { get } from "svelte/store"
import { FrontendTypes } from "constants"
import panelStructure from "./temporaryPanelStructure.js"
import CategoryTab from "./CategoryTab.svelte"

View File

@ -26,7 +26,7 @@
function navigate({ detail }) {
if (!detail) return
$goto(`./${detail.heading.key}`)
$goto(`../${detail.heading.key}`)
}
onMount(() => {