Skip to content

Commit 88dbdb5

Browse files
committed
fix: issue about no challenges
1 parent 56ae5f1 commit 88dbdb5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,11 @@ class ManageMilestones extends React.Component {
118118

119119
let challengeIds = _.map(milestone.products, `details.${CHALLENGE_ID_MAPPING}`).slice(0, 6)
120120
challengeIds = _.filter(challengeIds)
121-
if (!challengeIds.length) {
122-
return
123-
}
124121

125122
if (isExpand) {
126-
onGetChallenges(milestone.id, challengeIds)
123+
if (challengeIds.length) {
124+
onGetChallenges(milestone.id, challengeIds)
125+
}
127126
expandList.push(milestone.id)
128127
this.setState({expandList})
129128
} else {

0 commit comments

Comments
 (0)