1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

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:
Michael Drury 2024-02-15 15:54:59 +00:00 committed by GitHub
commit f866f78137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,12 +92,13 @@ const resetBuilderHistory = () => {
export const initialise = async pkg => {
const { application } = pkg
// must be first operation to make sure subsequent requests have correct app ID
appStore.syncAppPackage(pkg)
await Promise.all([
appStore.syncAppRoutes(),
componentStore.refreshDefinitions(application?.appId),
])
builderStore.init(application)
appStore.syncAppPackage(pkg)
navigationStore.syncAppNavigation(application?.navigation)
themeStore.syncAppTheme(application)
screenStore.syncAppScreens(pkg)