We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3302195 commit c100f4bCopy full SHA for c100f4b
src/containers/ChallengeEditor/index.js
@@ -328,14 +328,13 @@ class ChallengeEditor extends Component {
328
const copilotHandle = loggedInUser.handle
329
await createResource(challengeDetails.id, copilotRole.id, copilotHandle)
330
331
- // update the challenge
332
- const partialChallenge = {
+ this.setState({ challengeDetails: {
+ ...challengeDetails,
333
legacy: {
334
+ ...challengeDetails.legacy,
335
selfServiceCopilot: copilotHandle
336
}
- }
337
- const updatedChallenge = await patchChallenge(challengeDetails.id, partialChallenge)
338
- this.setState({ challengeDetails: updatedChallenge })
+ } })
339
340
341
showRejectChallengeModal () {
0 commit comments