I am creating an application that allows you to create compressors (an industrial machine) and choose the parts and number of parts that each of those compressors has.
I managed to create a loop in the frontend so that, when clicking on a + icon, it generates a list in different customs states so that when clicking the Save button, it saves that list in the DB (That works correctly)
The problem I have is that I want to give the user the experience of being able to delete a piece and quantity before saving to the DB, but the following workflow is not working for me:
It is a custom state of type number, therefore, when I indicate :minus item, the current cell item option does not appear.
Apparently, when I choose :minus item current cell index, it looks for the number within the listing and deletes it (if it’s not there, then it doesn’t do anything). What I want is for it to be interpreted as an order, so that it eliminates (for example) the 2nd item