File tree 1 file changed +5
-5
lines changed
client/packages/lowcoder/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ type AppIndexProps = {
99
99
class AppIndex extends React . Component < AppIndexProps , any > {
100
100
componentDidMount ( ) {
101
101
this . props . getCurrentUser ( ) ;
102
- if ( ! this . props . currentUserAnonymous ) {
103
- this . props . fetchHomeData ( this . props . currentUserAnonymous ) ;
104
- }
102
+ // if (!this.props.currentUserAnonymous) {
103
+ // this.props.fetchHomeData(this.props.currentUserAnonymous);
104
+ // }
105
105
}
106
106
107
107
componentDidUpdate ( prevProps : AppIndexProps ) {
@@ -115,7 +115,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
115
115
}
116
116
}
117
117
}
118
- render ( ) {
118
+ render ( ) { g
119
119
const isTemplate = hasQueryParam ( 'template' ) ;
120
120
const pathname = history . location . pathname ;
121
121
@@ -128,7 +128,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
128
128
}
129
129
130
130
// make sure all users in this app have checked login info
131
- if ( ! this . props . isFetchUserFinished ) { // || (this.props.currentUserId && !this.props.fetchHomeDataFinished)
131
+ if ( ! this . props . isFetchUserFinished || ( this . props . currentUserId && ! this . props . fetchHomeDataFinished ) ) {
132
132
const hideLoadingHeader = isTemplate || isAuthUnRequired ( pathname ) ;
133
133
return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
134
134
}
You can’t perform that action at this time.
0 commit comments