From 5abe722d4b892f082c747b53f5b8ebb67ca3d6bb Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:46:33 -0400 Subject: [PATCH] DOP-4481 hotfix (#1032) * DOP-4481-hotfix adding extra check * DOP-4481-hotfix push to preprd * DOP-4481-hotfix fix conditional * DOP-4481-hotfix fix conditional * DOP-4481-hotfix fix conditional * DOP-4481-hotfix cleaning --- src/services/slack.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/slack.ts b/src/services/slack.ts index 20803d268..e5483ec98 100644 --- a/src/services/slack.ts +++ b/src/services/slack.ts @@ -63,11 +63,10 @@ export class SlackConnector implements ISlackConnector { const inputMapping = { block_repo_option: 'repo_option', block_hash_option: 'hash_option', - block_deploy_option: 'deploy_option', }; // if deploy all was selected: - if (stateValues['block_deploy_option']['deploy_option']?.selected_option?.value == 'deploy_all') { + if (stateValues['block_deploy_option']?.deploy_option?.selected_option?.value == 'deploy_all') { if (!isAdmin) { throw new Error('User is not an admin and therefore not entitled to deploy all repos'); }