Skip to content

Commit b47f493

Browse files
authored
Fix product variation selection for order creation (#16317)
2 parents 99f6e3f + 9c56e1d commit b47f493

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [*] Improve card payments onboarding error handling to show network errors correctly [https://github.com/woocommerce/woocommerce-ios/pull/16304]
88
- [*] Authenticate the admin page automatically for sites with SSO enabled in custom fields, in-person payment setup, and editing tax rates flows. [https://github.com/woocommerce/woocommerce-ios/pull/16318]
99
- [*] Show POS feedback surveys for eligible merchants [https://github.com/woocommerce/woocommerce-ios/pull/16325]
10+
- [*] Fix product variation selection for order creation [https://github.com/woocommerce/woocommerce-ios/pull/16317]
1011

1112
23.6
1213
-----

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct OrderFormPresentationWrapper: View {
139139
},
140140
secondaryView: { isShowingProductSelector in
141141
if let productSelectorViewModel = viewModel.productSelectorViewModel {
142-
ProductSelectorView(configuration: .loadConfiguration(for: horizontalSizeClass),
142+
ProductSelectorNavigationView(configuration: .loadConfiguration(for: horizontalSizeClass),
143143
isPresented: isShowingProductSelector,
144144
viewModel: productSelectorViewModel)
145145
.sheet(item: $viewModel.productToConfigureViewModel) { viewModel in

WooCommerce/Classes/ViewRelated/Products/ProductSelector/ProductSelectorNavigationView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ struct ProductSelectorNavigationView: View {
1515
}
1616

1717
var body: some View {
18-
NavigationView {
18+
NavigationStack {
1919
ProductSelectorView(configuration: configuration,
2020
isPresented: $isPresented,
2121
viewModel: viewModel)
2222
}
23-
.navigationViewStyle(.stack)
2423
.wooNavigationBarStyle()
2524
}
2625
}

0 commit comments

Comments
 (0)