Commit 1487cea 1 parent 9016805 commit 1487cea Copy full SHA for 1487cea
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ export default class CVATApplication extends React.PureComponent<CVATAppProps> {
42
42
}
43
43
44
44
public componentDidUpdate ( ) {
45
- if ( ! this . props . userInitialized ) {
45
+ if ( ! this . props . userInitialized ||
46
+ this . props . userInitialized && this . props . user == null ) {
46
47
return ;
47
48
}
48
49
@@ -89,10 +90,10 @@ export default class CVATApplication extends React.PureComponent<CVATAppProps> {
89
90
90
91
// Where you go depends on your URL
91
92
public render ( ) {
92
- const readyForRender = this . props . userInitialized
93
- && this . props . formatsInitialized
94
- && this . props . pluginsInitialized
95
- && this . props . usersInitialized ;
93
+ const readyForRender =
94
+ ( this . props . userInitialized && this . props . user == null ) ||
95
+ ( this . props . userInitialized && this . props . formatsInitialized &&
96
+ this . props . pluginsInitialized && this . props . usersInitialized ) ;
96
97
97
98
if ( readyForRender ) {
98
99
if ( this . props . user ) {
You can’t perform that action at this time.
0 commit comments