Skip to content

Commit 489a77a

Browse files
authored
[Order Form] Fix: Do not sync product selection state with order item state when dismissing Order view (#15392)
2 parents 41d16af + 9bd4a21 commit 489a77a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
22.1
55
-----
66

7+
- [*] Order Creation: Fixed an issue where order recalculation would stop working after canceling a confirmation with unsaved changes [https://github.com/woocommerce/woocommerce-ios/pull/15392].
78

89
22.0
910
-----

WooCommerce/Classes/ViewRelated/Orders/Order Creation/OrderForm.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ struct OrderFormPresentationWrapper: View {
154154
},
155155
dismissBarButton: {
156156
Button {
157-
// By only calling the dismissHandler here, we wouldn't sync the selected items on dismissal
158-
// this is normally done via a callback through the ProductSelector's onCloseButtonTapped(),
159-
// but on split views we move this responsibility to the AdaptiveModalContainer
160-
viewModel.syncOrderItemSelectionStateOnDismiss()
161157
dismissHandler()
162158
} label: {
163159
switch dismissLabel {

0 commit comments

Comments
 (0)