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} {: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>

View File

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

View File

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