1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Fix for onboarding flow. App sync on created passed incorrect data

This commit is contained in:
Dean 2024-01-30 15:45:59 +00:00
parent 68543b12ee
commit 1d9a03e13c
3 changed files with 5 additions and 6 deletions

View file

@ -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>

View file

@ -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 })
}

View file

@ -116,7 +116,7 @@ export const initialise = async pkg => {
layoutStore.syncAppLayouts(pkg)
// required for api comms
database.syncAppDatabase(pkg)
database.syncAppDatabase(application)
resetBuilderHistory()