Merge pull request #13051 from Budibase/fix/app-routing-on-creation
Quick fix for builder store initialise on app creation
This commit is contained in:
commit
f866f78137
|
@ -92,12 +92,13 @@ const resetBuilderHistory = () => {
|
||||||
|
|
||||||
export const initialise = async pkg => {
|
export const initialise = async pkg => {
|
||||||
const { application } = pkg
|
const { application } = pkg
|
||||||
|
// must be first operation to make sure subsequent requests have correct app ID
|
||||||
|
appStore.syncAppPackage(pkg)
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
appStore.syncAppRoutes(),
|
appStore.syncAppRoutes(),
|
||||||
componentStore.refreshDefinitions(application?.appId),
|
componentStore.refreshDefinitions(application?.appId),
|
||||||
])
|
])
|
||||||
builderStore.init(application)
|
builderStore.init(application)
|
||||||
appStore.syncAppPackage(pkg)
|
|
||||||
navigationStore.syncAppNavigation(application?.navigation)
|
navigationStore.syncAppNavigation(application?.navigation)
|
||||||
themeStore.syncAppTheme(application)
|
themeStore.syncAppTheme(application)
|
||||||
screenStore.syncAppScreens(pkg)
|
screenStore.syncAppScreens(pkg)
|
||||||
|
|
Loading…
Reference in New Issue