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'); }