Skip to content

Commit

Permalink
Clear image upload errors when exiting product details discarding cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
JorgeMucientes committed Jan 30, 2025
1 parent f617f90 commit 1557aa5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ class ProductDetailViewModel @Inject constructor(
val positiveAction = DialogInterface.OnClickListener { _, _ ->
// Make sure to cancel any remaining image uploads
mediaFileUploadHandler.cancelUpload(getRemoteProductId())
mediaFileUploadHandler.clearImageErrors(getRemoteProductId())
triggerEvent(ProductNavigationTarget.ExitProduct)
}

Expand Down

0 comments on commit 1557aa5

Please sign in to comment.