Skip to content

Commit 6f75f09

Browse files
committed
fix: issue about milestone challenge count
1 parent 88dbdb5 commit 6f75f09

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)