File tree 1 file changed +9
-2
lines changed
src/components/ChallengeEditor 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -809,8 +809,7 @@ class ChallengeEditor extends Component {
809
809
} ,
810
810
descriptionFormat : 'markdown' ,
811
811
timelineTemplateId : defaultTemplate . id ,
812
- terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ] ,
813
- phases : this . getTemplatePhases ( defaultTemplate )
812
+ terms : [ { id : DEFAULT_TERM_UUID , roleId : SUBMITTER_ROLE_UUID } ]
814
813
// prizeSets: this.getDefaultPrizeSets()
815
814
}
816
815
const discussions = this . getDiscussionsConfig ( newChallenge )
@@ -841,6 +840,14 @@ class ChallengeEditor extends Component {
841
840
}
842
841
}
843
842
843
+ /*
844
+ TODO
845
+
846
+ IMPORTANT!!!
847
+
848
+ This method might be wrong. We might need to fix it when enabling editing phases UI.
849
+ See issue which caused by using of this method https://github.com/topcoder-platform/work-manager/issues/1012
850
+ */
844
851
getTemplatePhases ( template ) {
845
852
const timelinePhaseIds = template . phases . map ( timelinePhase => timelinePhase . phaseId || timelinePhase )
846
853
const validPhases = _ . cloneDeep ( this . props . metadata . challengePhases ) . filter ( challengePhase => {
You can’t perform that action at this time.
0 commit comments