all eslint errors fixed

This commit is contained in:
Martin McKeaveney 2020-02-25 16:23:45 +00:00
parent 3d7ba759fa
commit bcb66e7759
1 changed files with 10 additions and 7 deletions

View File

@ -45,7 +45,13 @@ export const loadBudibase = async opts => {
componentLibraries[builtinLibName] = builtins(_window)
const { initialisePage, screenStore, pageStore, routeTo, rootNode } = createApp(
const {
initialisePage,
screenStore,
pageStore,
routeTo,
rootNode,
} = createApp(
componentLibraries,
frontendDefinition,
backendDefinition,
@ -59,16 +65,13 @@ export const loadBudibase = async opts => {
? _window.location.pathname.replace(frontendDefinition.appRootPath, "")
: ""
initialisePage(frontendDefinition.page, _window.document.body, route)
return {
rootNode: initialisePage(
frontendDefinition.page,
_window.document.body,
route
),
screenStore,
pageStore,
routeTo,
rootNode
rootNode,
}
}