diff --git a/cvat-ui/src/components/cvat-app.tsx b/cvat-ui/src/components/cvat-app.tsx index 0373883c1a95..45b980771e9b 100644 --- a/cvat-ui/src/components/cvat-app.tsx +++ b/cvat-ui/src/components/cvat-app.tsx @@ -42,7 +42,8 @@ export default class CVATApplication extends React.PureComponent { } public componentDidUpdate() { - if (!this.props.userInitialized) { + if (!this.props.userInitialized || + this.props.userInitialized && this.props.user == null) { return; } @@ -89,10 +90,10 @@ export default class CVATApplication extends React.PureComponent { // Where you go depends on your URL public render() { - const readyForRender = this.props.userInitialized - && this.props.formatsInitialized - && this.props.pluginsInitialized - && this.props.usersInitialized; + const readyForRender = + (this.props.userInitialized && this.props.user == null) || + (this.props.userInitialized && this.props.formatsInitialized && + this.props.pluginsInitialized &&this.props.usersInitialized); if (readyForRender) { if (this.props.user) {