woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

[Tablet Orders] Sync removal for variations

Open iamgabrielma opened this issue 1 year ago • 1 comments

From: https://github.com/woocommerce/woocommerce-ios/pull/11917#issuecomment-1931232443

If we delete variations while the "variations view" is open, selections are not updated, which may cause the order to get out of sync as we keep adding/removing products.

Simulator Screen Recording - iPad Pro (12 9-inch) (6th generation) - 2024-02-07 at 10 30 39

iamgabrielma avatar Feb 07 '24 03:02 iamgabrielma

Sorry! I realised this after making the pr then forgot to fix it while I did other stuff.

I was planning to do it the same way: expose a removeSelection function on the product variation VM, then call it with the variation ID when the remove button is tapped.

joshheald avatar Feb 07 '24 05:02 joshheald