Skip to content
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
@reesesm2000

Description

@reesesm2000

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

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions