fix layout selection issues
This commit is contained in:
parent
a3dd9f1978
commit
a014db4185
|
@ -226,6 +226,7 @@ export const getFrontendStore = () => {
|
||||||
state.layouts.push(layoutToSave)
|
state.layouts.push(layoutToSave)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state.selectedComponentId = layoutToSave._id
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { get } from "svelte/store"
|
import { get } from "svelte/store"
|
||||||
import { store, selectedComponent, currentAsset } from "builderStore"
|
import { store, selectedComponent, currentAsset } from "builderStore"
|
||||||
|
import { get } from "svelte/store"
|
||||||
import { FrontendTypes } from "constants"
|
import { FrontendTypes } from "constants"
|
||||||
import panelStructure from "./temporaryPanelStructure.js"
|
import panelStructure from "./temporaryPanelStructure.js"
|
||||||
import CategoryTab from "./CategoryTab.svelte"
|
import CategoryTab from "./CategoryTab.svelte"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
function navigate({ detail }) {
|
function navigate({ detail }) {
|
||||||
if (!detail) return
|
if (!detail) return
|
||||||
$goto(`./${detail.heading.key}`)
|
$goto(`../${detail.heading.key}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
Loading…
Reference in New Issue