Skip to content

Commit deef916

Browse files
authored
Merge pull request #4989 from woocommerce/issue/3134-product-image-keeps-loading-on-product-image-upload-error
Add/Edit Products: product image stops loading on product image upload error
2 parents c6f4f07 + 811caaf commit deef916

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
7.6
44
-----
5-
5+
- [*] Fix: when product image upload fails, the image cell stop loading. [https://github.com/woocommerce/woocommerce-ios/pull/4989]
66

77
7.5
88
-----

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)