File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
components/ChallengeEditor Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -950,12 +950,16 @@ class ChallengeEditor extends Component {
950950 'scheduledStartDate' ,
951951 'scheduledEndDate'
952952 ] , p ) )
953- console . log ( 'Picked' , challenge . phases )
953+
954954 if ( challenge . terms && challenge . terms . length === 0 ) delete challenge . terms
955955 delete challenge . attachments
956956 delete challenge . reviewType
957957 if ( ! isPhaseChange ) delete challenge . phases
958- return _ . cloneDeep ( challenge )
958+
959+ const cloned = _ . cloneDeep ( challenge )
960+ console . log ( 'CLONED' , cloned )
961+
962+ return cloned
959963 }
960964
961965 goToEdit ( challengeID ) {
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
116116 // challengeDetailTmp.submissionEndDate = moment(challengeDetail.phases[1].scheduledEndDate)
117117 challengeDetailTmp . phases = challengeDetailTmp . phases . map ( ( p ) => ( {
118118 duration : p . duration * hourToSecond ,
119- phaseId : p . phaseId
119+ phaseId : p . phaseId ,
120+ scheduledStartDate : p . scheduledStartDate
120121 } ) )
121122 return challengeDetailTmp
122123 }
You can’t perform that action at this time.
0 commit comments