fix debug console position

This commit is contained in:
SrGooglo 2022-11-22 00:34:15 +00:00
parent ea81adfe56
commit 59d00d4ad3

View File

@ -161,8 +161,6 @@ export default class Layout extends React.PureComponent {
return JSON.stringify(this.state.renderError) 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 // 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) const routeDeclaration = routes.find((route) => route.path === window.location.pathname)
@ -196,6 +194,8 @@ export default class Layout extends React.PureComponent {
...this.state, ...this.state,
} }
console.debug(`Rendering layout [${this.state.layoutType}] for current route [${window.location.pathname}]`)
const Layout = Layouts[layoutType] const Layout = Layouts[layoutType]
if (!Layout) { if (!Layout) {