Skip to main content
Sujay Prabhat a posé une question dans #Slack Developers

experiencing a client-side error when users select options from an external_select element in the new Slack gantry-v2 web client. The same code works perfectly in the older Slack desktop client. 

 

```{"subtype":"missing_subtype","message":"Cannot read properties of undefined (reading 'text')","stack":"TypeError: Cannot read properties of undefined (reading 'text')\n    at formatSingleOption ``` 

 

When it occurs:

  • Error happens when user selects an option from the dropdown
  • Dropdown loads and displays options correctly
  • Only fails on selection in gantry-v2 client
  • Works fine in older Slack desktop client

Our response format (confirmed correct per Block Kit docs):

 

{

    "ok": true,

    "options": [

        {

            "text": {

                "type": "plain_text",

                "text": "abc-abc",

                "emoji": true

            },

            "value": "abc"

        }

    ]

}

 

0/9000