File tree 2 files changed +8
-3
lines changed
components/ChallengeEditor
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 {
950
950
'scheduledStartDate' ,
951
951
'scheduledEndDate'
952
952
] , p ) )
953
- console . log ( 'Picked' , challenge . phases )
953
+
954
954
if ( challenge . terms && challenge . terms . length === 0 ) delete challenge . terms
955
955
delete challenge . attachments
956
956
delete challenge . reviewType
957
957
if ( ! isPhaseChange ) delete challenge . phases
958
- return _ . cloneDeep ( challenge )
958
+
959
+ const cloned = _ . cloneDeep ( challenge )
960
+ console . log ( 'CLONED' , cloned )
961
+
962
+ return cloned
959
963
}
960
964
961
965
goToEdit ( challengeID ) {
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
116
116
// challengeDetailTmp.submissionEndDate = moment(challengeDetail.phases[1].scheduledEndDate)
117
117
challengeDetailTmp . phases = challengeDetailTmp . phases . map ( ( p ) => ( {
118
118
duration : p . duration * hourToSecond ,
119
- phaseId : p . phaseId
119
+ phaseId : p . phaseId ,
120
+ scheduledStartDate : p . scheduledStartDate
120
121
} ) )
121
122
return challengeDetailTmp
122
123
}
You can’t perform that action at this time.
0 commit comments