fix layout selection issues

This commit is contained in:
Martin McKeaveney 2020-12-07 16:06:20 +00:00
parent a3dd9f1978
commit a014db4185
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(() => {