File tree 2 files changed +2
-17
lines changed
2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 6
6
* Connects the Redux store to the Challenge Submissions display components.
7
7
* Passes the relevent state and setters as properties to the UI components.
8
8
*/
9
- import _ from 'lodash' ;
10
9
import actions from 'actions/page/submission' ;
11
10
import communityActions from 'actions/tc-communities' ;
12
11
import shortId from 'shortid' ;
@@ -15,7 +14,6 @@ import PT from 'prop-types';
15
14
import { connect } from 'react-redux' ;
16
15
import SubmissionsPage from 'components/SubmissionPage' ;
17
16
import AccessDenied , { CAUSE as ACCESS_DENIED_REASON } from 'components/tc-communities/AccessDenied' ;
18
- import { USER_GROUP_MAXAGE } from 'config' ;
19
17
20
18
/**
21
19
* SubmissionsPage Container
@@ -29,18 +27,10 @@ class SubmissionsPageContainer extends React.Component {
29
27
componentDidMount ( ) {
30
28
const {
31
29
auth,
32
- groups,
33
- communitiesList,
34
30
getCommunitiesList,
35
31
} = this . props ;
36
32
37
- // check if challenge belongs to any groups
38
- // and the communitiesList is not up-to-date
39
- // then will load the communitiesList
40
- if ( ! _ . isEmpty ( groups ) && ! communitiesList . loadingUuid
41
- && ( Date . now ( ) - communitiesList . timestamp > USER_GROUP_MAXAGE ) ) {
42
- getCommunitiesList ( auth ) ;
43
- }
33
+ getCommunitiesList ( auth ) ;
44
34
}
45
35
46
36
/* A child component has called their submitForm() prop, prepare the passed
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { BUCKETS } from 'utils/challenge-listing/buckets';
31
31
import { CHALLENGE_PHASE_TYPES , COMPETITION_TRACKS_V3 , SUBTRACKS } from 'utils/tc' ;
32
32
import { config , MetaTags } from 'topcoder-react-utils' ;
33
33
import { actions } from 'topcoder-react-lib' ;
34
- import { USER_GROUP_MAXAGE } from 'config' ;
35
34
36
35
import ogWireframe from
37
36
'../../../assets/images/open-graph/challenges/01-wireframe.jpg' ;
@@ -127,7 +126,6 @@ class ChallengeDetailPageContainer extends React.Component {
127
126
const {
128
127
auth,
129
128
challenge,
130
- communitiesList,
131
129
getCommunitiesList,
132
130
loadChallengeDetails,
133
131
challengeId,
@@ -161,10 +159,7 @@ class ChallengeDetailPageContainer extends React.Component {
161
159
loadChallengeDetails ( auth , challengeId ) ;
162
160
}
163
161
164
- if ( ! communitiesList . loadingUuid
165
- && ( Date . now ( ) - communitiesList . timestamp > USER_GROUP_MAXAGE ) ) {
166
- getCommunitiesList ( auth ) ;
167
- }
162
+ getCommunitiesList ( auth ) ;
168
163
169
164
if ( _ . isEmpty ( challengeSubtracksMap ) ) {
170
165
getSubtracks ( ) ;
You can’t perform that action at this time.
0 commit comments