I am using Sweet alerts 2 in a delete function. The code is working fine, Getting the alert but when I am clicking on the delete button of the alert I am getting an error in