Skip to content

Commit c100f4b

Browse files
remove patching to change the selfServiceCopilot as that has been moved to the challenge-processor
1 parent 3302195 commit c100f4b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/containers/ChallengeEditor/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,13 @@ class ChallengeEditor extends Component {
328328
const copilotHandle = loggedInUser.handle
329329
await createResource(challengeDetails.id, copilotRole.id, copilotHandle)
330330

331-
// update the challenge
332-
const partialChallenge = {
331+
this.setState({ challengeDetails: {
332+
...challengeDetails,
333333
legacy: {
334+
...challengeDetails.legacy,
334335
selfServiceCopilot: copilotHandle
335336
}
336-
}
337-
const updatedChallenge = await patchChallenge(challengeDetails.id, partialChallenge)
338-
this.setState({ challengeDetails: updatedChallenge })
337+
} })
339338
}
340339

341340
showRejectChallengeModal () {

0 commit comments

Comments
 (0)