Closed aslakhol closed 2 years ago
I think I got this sorted, but I need to figure out why it doesn't delete duplicates.
I don't want it to delete duplicates, but my current implementation should.
The problem was that I did in fact delete all the ingredient for drink relations related to an ingredient, but I also recreated the ones I hadn't deleted at the same time.
Right now the delete button only works on the frontend form data.
Preferably when submitting we should delete ingredient for drink relations that have been marked to delete, but alternatively, we can delete them as the trash icon is clicked.