Skip to content

Commit 2acb8a0

Browse files
fix routing for public apps
1 parent 33b0530 commit 2acb8a0

File tree

1 file changed

+5
-5
lines changed
  • client/packages/lowcoder/src

1 file changed

+5
-5
lines changed

client/packages/lowcoder/src/app.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ type AppIndexProps = {
9999
class 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
}

0 commit comments

Comments
 (0)