woocommerce-ios
woocommerce-ios copied to clipboard
[Tablet Orders] Sync removal for variations
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.
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.