File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/containers/Challenges Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
deleteChallenge ,
15
15
loadChallengeTypes
16
16
} from '../../actions/challenges'
17
- import { loadProject , updateProject } from '../../actions/projects'
17
+ import { loadProject , loadProjects , updateProject } from '../../actions/projects'
18
18
import {
19
19
loadNextProjects ,
20
20
setActiveProject ,
@@ -42,6 +42,7 @@ class Challenges extends Component {
42
42
} = this . props
43
43
loadChallengeTypes ( )
44
44
if ( dashboard ) {
45
+ this . props . loadProjects ( '' , { } )
45
46
this . reloadChallenges ( this . props , true , true )
46
47
}
47
48
if ( menu === 'NULL' && activeProjectId !== - 1 ) {
@@ -234,7 +235,8 @@ Challenges.propTypes = {
234
235
fetchNextProjects : PropTypes . func . isRequired ,
235
236
metadata : PropTypes . shape ( {
236
237
challengeTypes : PropTypes . array
237
- } )
238
+ } ) ,
239
+ loadProjects : PropTypes . func . isRequired
238
240
}
239
241
240
242
const mapStateToProps = ( { challenges, sidebar, projects, auth } ) => ( {
@@ -265,7 +267,8 @@ const mapDispatchToProps = {
265
267
loadChallengeTypes,
266
268
setActiveProject,
267
269
partiallyUpdateChallengeDetails,
268
- deleteChallenge
270
+ deleteChallenge,
271
+ loadProjects
269
272
}
270
273
271
274
export default connect ( mapStateToProps , mapDispatchToProps ) ( Challenges )
You can’t perform that action at this time.
0 commit comments