This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
Throw when a block action element is a select and 'Clear Selection' is clicked. #2053
Closed
Description
When sending an actions block as an interactive message with an external_select element there is a 'Clear Selection' option in the dropdown list. If you select 'Clear Select', there is a throw in slack_adapter.js at line 546 as there is no selected_option. Following line needs to be adapted to cater for null values.
From:
activity.text = event.actions[0].selected_option.value;
To:
activity.text = event.actions[0].selected_option ? event.actions[0].selected_option.value : undefined;
- Botkit version: 4.10
- Messaging Platform: Slack
- Node version: 11.6
- Os: CentOS