I am using a for loop rather than editing the single object by using its id which is returninan me a Array with the modified object quantity
ISSUE: the last code has been using the filter to separate the object and apending the toggled object at the end
The issue with the last code was that we are appending the founded object to a filtered object which always comes at last.
Now it's working finely the cart item remains at the same place rather than going to to the bottom on inc or dec
I am using a for loop rather than editing the single object by using its id which is returninan me a Array with the modified object quantity ISSUE: the last code has been using the filter to separate the object and apending the toggled object at the end The issue with the last code was that we are appending the founded object to a filtered object which always comes at last. Now it's working finely the cart item remains at the same place rather than going to to the bottom on inc or dec