Skip to content

Commit 643d14a

Browse files
committed
Fix build failures after merge conflict resolution
1 parent b08be97 commit 643d14a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ struct WooShippingSplitShipmentsDetailView: View {
3434
.foregroundStyle(Color(.textSubtle))
3535
}
3636

37-
VStack(spacing: Layout.verticalSpacing) {
38-
ForEach(viewModel.shipmentCardViewModels) { item in
39-
CollapsibleShipmentCard(viewModel: item)
37+
if let shipment = viewModel.currentShipment {
38+
VStack(spacing: Layout.verticalSpacing) {
39+
ForEach(shipment) { item in
40+
CollapsibleShipmentCard(viewModel: item)
41+
}
4042
}
4143
}
4244
}

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private extension WooShippingSplitShipmentsViewModel {
127127

128128
func showMoveToNotice() {
129129
let selectedItemsCount = {
130-
shipmentCardViewModels.map { $0.selectedShipmentIds.count }.reduce(0, +)
130+
currentShipment?.map { $0.selectedShipmentIds.count }.reduce(0, +) ?? 0
131131
}()
132132

133133
guard selectedItemsCount > 0 else {

0 commit comments

Comments
 (0)