@@ -231,12 +231,7 @@ extension ProductsSplitViewCoordinator: UINavigationControllerDelegate {
231231 func navigationController( _ navigationController: UINavigationController , didShow viewController: UIViewController , animated: Bool ) {
232232 if didNavigateFromTheLastSecondaryViewControllerToProductListInCollapsedMode ( navigationController, didShow: viewController) {
233233 if let contentType = contentTypes. last, case let . productForm( product) = contentType, let product {
234- let uploader = ServiceLocator . productImageUploader
235- let key = ProductImageUploaderKey ( siteID: product. siteID,
236- productOrVariationID: . product( id: product. productID) ,
237- isLocalID: false )
238- uploader. startEmittingErrors ( key: key)
239- uploader. sendBackgroundUploadNoticeIfNeeded ( key: key, using: ServiceLocator . noticePresenter)
234+ didDismissProductForm ( product: product)
240235 }
241236 contentTypes = [ ]
242237 secondaryNavigationController. viewControllers = [ ]
@@ -277,6 +272,15 @@ private extension ProductsSplitViewCoordinator {
277272 return splitViewController. isCollapsed && navigationController == primaryNavigationController
278273 && contentTypes. isNotEmpty && isNavigatingToProductList
279274 }
275+
276+ func didDismissProductForm( product: Product ) {
277+ let uploader = ServiceLocator . productImageUploader
278+ let key = ProductImageUploaderKey ( siteID: product. siteID,
279+ productOrVariationID: . product( id: product. productID) ,
280+ isLocalID: false )
281+ uploader. startEmittingErrors ( key: key)
282+ uploader. sendBackgroundUploadNoticeIfNeeded ( key: key, using: ServiceLocator . noticePresenter)
283+ }
280284}
281285
282286private extension ProductsSplitViewCoordinator {
0 commit comments