Skip to content

Commit a424cb1

Browse files
committed
Fix: product image stops loading on product image upload error
1 parent f75a20c commit a424cb1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductFormViewController.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ final class ProductFormViewController<ViewModel: ProductFormViewModelProtocol>:
122122
self.displayErrorAlert(title: title, message: message)
123123
}
124124

125-
if productImageStatuses.hasPendingUpload {
126-
self.onImageStatusesUpdated(statuses: productImageStatuses)
127-
}
125+
self.onImageStatusesUpdated(statuses: productImageStatuses)
128126

129127
self.viewModel.updateImages(productImageStatuses.images)
130128
}

0 commit comments

Comments
 (0)