I am creating a table with a button to delete a value from an array to call my api to delete the selected value but clicking the button causes error Uncaught TypeError: Cann