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}
|
||||
<p></p>
|
||||
{/if}
|
||||
<Button size="L" cta disabled={!isValid || disabled} on:click={onNext}
|
||||
>Lets go!</Button
|
||||
>
|
||||
<Button size="L" cta disabled={!isValid || disabled} on:click={onNext}>
|
||||
Lets go!
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -3,8 +3,7 @@ import { writable } from "svelte/store"
|
|||
export const createDatabaseStore = () => {
|
||||
const store = writable({})
|
||||
|
||||
const syncAppDatabase = pkg => {
|
||||
const { application } = pkg
|
||||
const syncAppDatabase = application => {
|
||||
store.set({ ...application.instance })
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ export const initialise = async pkg => {
|
|||
layoutStore.syncAppLayouts(pkg)
|
||||
|
||||
// required for api comms
|
||||
database.syncAppDatabase(pkg)
|
||||
database.syncAppDatabase(application)
|
||||
|
||||
resetBuilderHistory()
|
||||
|
||||
|
|
Loading…
Reference in New Issue