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()