File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ type AppIndexProps = {
9999class AppIndex extends React . Component < AppIndexProps , any > {
100100 componentDidMount ( ) {
101101 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+ // }
105105 }
106106
107107 componentDidUpdate ( prevProps : AppIndexProps ) {
@@ -115,7 +115,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
115115 }
116116 }
117117 }
118- render ( ) {
118+ render ( ) { g
119119 const isTemplate = hasQueryParam ( 'template' ) ;
120120 const pathname = history . location . pathname ;
121121
@@ -128,7 +128,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
128128 }
129129
130130 // 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 ) ) {
132132 const hideLoadingHeader = isTemplate || isAuthUnRequired ( pathname ) ;
133133 return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
134134 }
You can’t perform that action at this time.
0 commit comments