mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fix debug console position
This commit is contained in:
parent
ea81adfe56
commit
59d00d4ad3
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user