We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ae5f1 commit 88dbdb5Copy full SHA for 88dbdb5
src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx
@@ -118,12 +118,11 @@ class ManageMilestones extends React.Component {
118
119
let challengeIds = _.map(milestone.products, `details.${CHALLENGE_ID_MAPPING}`).slice(0, 6)
120
challengeIds = _.filter(challengeIds)
121
- if (!challengeIds.length) {
122
- return
123
- }
124
125
if (isExpand) {
126
- onGetChallenges(milestone.id, challengeIds)
+ if (challengeIds.length) {
+ onGetChallenges(milestone.id, challengeIds)
+ }
127
expandList.push(milestone.id)
128
this.setState({expandList})
129
} else {
0 commit comments