diff --git a/packages/app/src/layout.jsx b/packages/app/src/layout.jsx index 50a73ebf..4fc9d542 100644 --- a/packages/app/src/layout.jsx +++ b/packages/app/src/layout.jsx @@ -103,6 +103,12 @@ export default class Layout extends React.Component { const currentRoute = window.location.pathname + if (this.state.renderLock) { + return <> + {InitializationComponent} + + } + if (!this.props.user && currentRoute !== config.app?.authPath && currentRoute !== "/") { const isPublicRoute = publicRoutes.some((route) => { const regex = new RegExp(route.replace("*", ".*")) @@ -171,7 +177,7 @@ export default class Layout extends React.Component { } return - {this.state.renderLock ? InitializationComponent : this.props.children} + {this.props.children} } } \ No newline at end of file