File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/ChallengeEditor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1448,7 +1448,7 @@ class ChallengeEditor extends Component {
14481448 )
14491449 }
14501450 </ React . Fragment >
1451- // const useTask = _.find(metadata.challengeTypes, { id: challenge.typeId, isTask: true })
1451+ const useTask = _ . find ( metadata . challengeTypes , { id : challenge . typeId , isTask : true } )
14521452 const selectedType = _ . find ( metadata . challengeTypes , { id : challenge . typeId } )
14531453 const challengeTrack = _ . find ( metadata . challengeTracks , { id : challenge . trackId } )
14541454 const selectedMilestone = _ . find ( projectPhases ,
@@ -1468,7 +1468,7 @@ class ChallengeEditor extends Component {
14681468 < TypeField types = { metadata . challengeTypes } onUpdateSelect = { this . onUpdateSelect } challenge = { challenge } />
14691469 < ChallengeNameField challenge = { challenge } onUpdateInput = { this . onUpdateInput } />
14701470 { projectDetail . version === 'v4' && < MilestoneField milestones = { activeProjectMilestones } onUpdateSelect = { this . onUpdateSelect } projectId = { projectDetail . id } selectedMilestoneId = { selectedMilestoneId } /> }
1471- { isTask && ( < DiscussionField hasForum = { hasForum } toggleForum = { this . toggleForumOnCreate } /> ) }
1471+ { useTask && ( < DiscussionField hasForum = { hasForum } toggleForum = { this . toggleForumOnCreate } /> ) }
14721472 </ div >
14731473 { showDesignChallengeWarningModel && designChallengeModal }
14741474 { errorContainer }
You can’t perform that action at this time.
0 commit comments