[Edit Product] Impossible to discard product changes once images have been uploaded. #15258
Labels
priority: high
Affects lots of customers substantially, but not critically.
type: bug
A confirmed bug.
Describe the bug
While working on image uploads in the background, I discovered an issue that also exists on the
trunk
branch. When a user uploads one or more images to a product or a product variation and then decides to discard the changes, it initially appears that the changes have been discarded correctly. Returning to the product list works fine. However, upon reopening the product, the newly uploaded images are still present, and it is possible to save the changes. Additionally, to return to the previous state, the user must press back and discard the changes again. Closing and reopening the app resolves the issue.I found that this issue occurs only with product images, not with other product fields.
To Reproduce
Steps to reproduce the behavior:
Navigate to the Product List:
Select a Product to Edit:
Upload Images:
Attempt to Discard Changes:
Return to Product List:
Reopen the Product:
Observe the Uploaded Images:
Attempt to Discard Again:
Verify Issue Resolution by Closing App:
Recording
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-26.at.16.31.25.mp4
Expected behavior
The expected behavior is that when a user uploads images to a product or variation and chooses to discard the changes, all unsaved changes, including the new images, should be immediately removed from the product edit view. When the user returns to and reopens the product, it should display its last saved state, without any trace of the discarded edits. This ensures that users do not need to restart the app to see the correct, intended state.
Mobile Environment
Please include:
The text was updated successfully, but these errors were encountered: