Skip to content

Commit 33c7134

Browse files
author
FalkWolsky
committed
Cleanup dispatchers
1 parent b415d1e commit 33c7134

File tree

1 file changed

+0
-14
lines changed
  • client/packages/lowcoder/src

1 file changed

+0
-14
lines changed

client/packages/lowcoder/src/app.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import { Redirect, Router, Switch } from "react-router-dom";
3636
import type { AppState } from "redux/reducers";
3737
import { fetchConfigAction } from "redux/reduxActions/configActions";
3838
import { fetchUserAction } from "redux/reduxActions/userActions";
39-
import { fetchSubscriptionsAction } from "redux/reduxActions/subscriptionActions";
4039
import { reduxStore } from "redux/store/store";
4140
import { developEnv } from "util/envUtils";
4241
import history from "util/history";
@@ -90,7 +89,6 @@ type AppIndexProps = {
9089
fetchHomeDataFinished: boolean;
9190
fetchConfig: (orgId?: string) => void;
9291
fetchHomeData: (currentUserAnonymous?: boolean | undefined) => void;
93-
fetchSubscriptions: () => void;
9492
getCurrentUser: () => void;
9593
favicon: string;
9694
brandName: string;
@@ -113,7 +111,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
113111
this.props.fetchConfig(this.props.currentOrgId);
114112
if (!this.props.currentUserAnonymous) {
115113
this.props.fetchHomeData(this.props.currentUserAnonymous);
116-
this.props.fetchSubscriptions();
117114
}
118115
}
119116
}
@@ -420,19 +417,8 @@ const mapDispatchToProps = (dispatch: any) => ({
420417
},
421418
fetchConfig: (orgId?: string) => dispatch(fetchConfigAction(orgId)),
422419

423-
fetchSubscriptions: () => {
424-
// dispatch(fetchSubscriptionsAction());
425-
},
426-
427420
fetchHomeData: (currentUserAnonymous: boolean | undefined) => {
428421
dispatch(fetchHomeData({}));
429-
// the rule should be that if the user is not logged in and if he want to view an App, we should not fetch the home data
430-
/* if (window.location.pathname == APP_EDITOR_URL && !currentUserAnonymous && !currentUserAnonymous === undefined) {
431-
dispatch(fetchHomeData({}));
432-
}
433-
else {
434-
dispatch(fetchHomeData({}));
435-
} */
436422
}
437423
});
438424

0 commit comments

Comments
 (0)