File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
components/ChallengeEditor Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -879,7 +879,9 @@ class ChallengeEditor extends Component {
879
879
}
880
880
challenge . phases = challenge . phases . map ( ( p ) => pick ( [
881
881
'duration' ,
882
- 'phaseId'
882
+ 'phaseId' ,
883
+ 'scheduledStartDate' ,
884
+ 'scheduledEndDate'
883
885
] , p ) )
884
886
if ( challenge . terms && challenge . terms . length === 0 ) delete challenge . terms
885
887
delete challenge . attachments
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
109
109
const hourToSecond = 60 * 60
110
110
if ( challengeDetail . phases ) {
111
111
const challengeDetailTmp = _ . cloneDeep ( challengeDetail )
112
+ challengeDetailTmp . startDate = challengeDetail . phases [ 0 ] . scheduledStartDate
112
113
challengeDetailTmp . phases = challengeDetailTmp . phases . map ( ( p ) => ( {
113
114
duration : p . duration * hourToSecond ,
114
115
phaseId : p . phaseId ,
You can’t perform that action at this time.
0 commit comments