Fix for onboarding flow. App sync on created passed incorrect data
This commit is contained in:
parent
68543b12ee
commit
1d9a03e13c
|
@ -72,9 +72,9 @@
|
||||||
{:else}
|
{:else}
|
||||||
<p></p>
|
<p></p>
|
||||||
{/if}
|
{/if}
|
||||||
<Button size="L" cta disabled={!isValid || disabled} on:click={onNext}
|
<Button size="L" cta disabled={!isValid || disabled} on:click={onNext}>
|
||||||
>Lets go!</Button
|
Lets go!
|
||||||
>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -3,8 +3,7 @@ import { writable } from "svelte/store"
|
||||||
export const createDatabaseStore = () => {
|
export const createDatabaseStore = () => {
|
||||||
const store = writable({})
|
const store = writable({})
|
||||||
|
|
||||||
const syncAppDatabase = pkg => {
|
const syncAppDatabase = application => {
|
||||||
const { application } = pkg
|
|
||||||
store.set({ ...application.instance })
|
store.set({ ...application.instance })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ export const initialise = async pkg => {
|
||||||
layoutStore.syncAppLayouts(pkg)
|
layoutStore.syncAppLayouts(pkg)
|
||||||
|
|
||||||
// required for api comms
|
// required for api comms
|
||||||
database.syncAppDatabase(pkg)
|
database.syncAppDatabase(application)
|
||||||
|
|
||||||
resetBuilderHistory()
|
resetBuilderHistory()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue