table.exportData() function not working when called from button

  • Goal: I want to call a table's exportData function from a button, but I get the following error: Cannot read properties of undefined (reading 'map')

  • Steps:

    1. Create a table
    2. Create a button
    3. Set button click handler to Control component, select the table as the component, choose method Export data
    4. Click button and see error in Console
  • Details: This is using the new table component. I'm creating a separate button to export instead of using the download button on the toolbar because this table needs to be hidden. Clicking the download button on the table toolbar works correctly, so I don't think it's an issue with the data in my table.

  • Screenshots: