Skip to content

Commit a91f419

Browse files
author
Vikas Agarwal
committed
fix: git#1066-Saving challenge shows error and won't redirect to previous page
1 parent bf96b3e commit a91f419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,8 @@ class ChallengeEditor extends Component {
964964
const reviewer = this.state.draftChallenge.data.reviewer
965965
const action = await partiallyUpdateChallengeDetails(challengeId, patchObject)
966966
const draftChallenge = { data: action.challengeDetails }
967-
draftChallenge.copilot = copilot
968-
draftChallenge.reviewer = reviewer
967+
draftChallenge.data.copilot = copilot
968+
draftChallenge.data.reviewer = reviewer
969969
const { challenge: oldChallenge } = this.state
970970
const newChallenge = { ...oldChallenge }
971971

0 commit comments

Comments
 (0)