Skip to content

Commit 69cdffa

Browse files
authored
#1143 - Fix pureV5 task NDA required even when not selected
1 parent 972f8b0 commit 69cdffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ class ChallengeEditor extends Component {
10401040
newChallenge.status = status
10411041
try {
10421042
const challengeId = this.getCurrentChallengeId()
1043+
const action = await updateChallengeDetails(challengeId, challenge)
10431044
// state can have updated assigned member (in cases where user changes assignments without refreshing the page)
10441045
const { challenge: { copilot, reviewer, type }, assignedMemberDetails: assignedMember } = this.state
10451046
const oldMemberHandle = _.get(oldAssignedMember, 'handle')
@@ -1048,7 +1049,6 @@ class ChallengeEditor extends Component {
10481049
if (assignedMemberHandle !== oldMemberHandle) {
10491050
await this.updateResource(challengeId, 'Submitter', assignedMemberHandle, oldMemberHandle)
10501051
}
1051-
const action = await updateChallengeDetails(challengeId, challenge)
10521052
const { copilot: previousCopilot, reviewer: previousReviewer } = this.state.draftChallenge.data
10531053
if (copilot !== previousCopilot) await this.updateResource(challengeId, 'Copilot', copilot, previousCopilot)
10541054
if (type === 'First2Finish' || type === 'Task') {

0 commit comments

Comments
 (0)