diff --git a/packages/app/src/layout.jsx b/packages/app/src/layout.jsx index 952b977a..b1747c70 100755 --- a/packages/app/src/layout.jsx +++ b/packages/app/src/layout.jsx @@ -161,8 +161,6 @@ export default class Layout extends React.PureComponent { return JSON.stringify(this.state.renderError) } - console.debug(`Rendering layout [${this.state.layoutType}] for current route [${window.location.pathname}]`) - // check with the current route if it's a protected route or requires some permissions const routeDeclaration = routes.find((route) => route.path === window.location.pathname) @@ -196,6 +194,8 @@ export default class Layout extends React.PureComponent { ...this.state, } + console.debug(`Rendering layout [${this.state.layoutType}] for current route [${window.location.pathname}]`) + const Layout = Layouts[layoutType] if (!Layout) {