Skip to content

Commit 6e9f8d5

Browse files
committed
Observe background image error upon navigating back to product list in collapsed mode
1 parent 437ed99 commit 6e9f8d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WooCommerce/Classes/ViewRelated/Products/ProductsSplitViewCoordinator.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ private extension ProductsSplitViewCoordinator {
230230
extension ProductsSplitViewCoordinator: UINavigationControllerDelegate {
231231
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
232232
if didNavigateFromTheLastSecondaryViewControllerToProductListInCollapsedMode(navigationController, didShow: viewController) {
233+
if let contentType = contentTypes.last, case let .productForm(product) = contentType, let product {
234+
ServiceLocator.productImageUploader.startEmittingErrors(
235+
key: .init(siteID: product.siteID,
236+
productOrVariationID: .product(id: product.productID),
237+
isLocalID: false))
238+
}
233239
contentTypes = []
234240
secondaryNavigationController.viewControllers = []
235241
return

0 commit comments

Comments
 (0)