Skip to content

Commit fe8d458

Browse files
authored
Merge pull request #4448 from yoution/feature/new-milestone-concept
fix: issue about milestone challenge count
2 parents 26bb1ff + 6f75f09 commit fe8d458

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ class ManageMilestones extends React.Component {
116116
let expandList = this.state.expandList
117117
const { onGetChallenges } = this.props
118118

119-
let challengeIds = _.map(milestone.products, `details.${CHALLENGE_ID_MAPPING}`).slice(0, 6)
120-
challengeIds = _.filter(challengeIds)
119+
const challengeIds = _.filter(_.map(milestone.products, `details.${CHALLENGE_ID_MAPPING}`)).slice(0, 6)
121120

122121
if (isExpand) {
123122
if (challengeIds.length) {

0 commit comments

Comments
 (0)