From 4ac16de6931ce984f3a544a9e33eeb90812bd465 Mon Sep 17 00:00:00 2001 From: Thomas Kranitsas Date: Mon, 7 Feb 2022 18:26:32 +0200 Subject: [PATCH] temp fix - disable auto adding approver/screener --- src/containers/ChallengeEditor/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/containers/ChallengeEditor/index.js b/src/containers/ChallengeEditor/index.js index 10cfe5fd..b63b44f1 100644 --- a/src/containers/ChallengeEditor/index.js +++ b/src/containers/ChallengeEditor/index.js @@ -341,8 +341,8 @@ class ChallengeEditor extends Component { // get the resource roles and new/old resource values const copilotRole = getResourceRoleByName(metadata.resourceRoles, 'Copilot') - const approverRole = getResourceRoleByName(metadata.resourceRoles, 'Approver') - const screenerRole = getResourceRoleByName(metadata.resourceRoles, 'Primary Screener') + // const approverRole = getResourceRoleByName(metadata.resourceRoles, 'Approver') + // const screenerRole = getResourceRoleByName(metadata.resourceRoles, 'Primary Screener') const copilotHandle = loggedInUser.handle const challengeId = challengeDetails.id const oldPilot = challengeDetails.legacy.selfServiceCopilot @@ -350,8 +350,8 @@ class ChallengeEditor extends Component { // replace the roles await replaceResourceInRole(challengeId, copilotRole.id, newPilot, oldPilot) - await replaceResourceInRole(challengeId, approverRole.id, newPilot, oldPilot) - await replaceResourceInRole(challengeId, screenerRole.id, newPilot, oldPilot) + // await replaceResourceInRole(challengeId, approverRole.id, newPilot, oldPilot) + // await replaceResourceInRole(challengeId, screenerRole.id, newPilot, oldPilot) this.setState({ challengeDetails: {