From 3fd7f376e399d37ef028cf661a52297171bba9b4 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 25 Feb 2020 16:23:45 +0000 Subject: [PATCH] all eslint errors fixed --- packages/client/src/index.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/client/src/index.js b/packages/client/src/index.js index 1da972ee1c..3f56865504 100644 --- a/packages/client/src/index.js +++ b/packages/client/src/index.js @@ -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, } }