How can I ensure a single-click deletion functionality for items in Flask app admin panel?
I have a Flask application where I’m implementing an admin panel feature. In this panel, I display a list of items (in this case, doctors) retrieved from the database, and each item has a delete button associated with it. However, I noticed that I have to click the delete button twice to actually delete the item.