Skip to content

Conversation

samymsa
Copy link

@samymsa samymsa commented Mar 29, 2025

This PR fixes a bug where the ItemUpdateForm (in EditItem) would reset to its default values upon successful mutation. As a result, reopening the update form would display outdated predefined values. The fix ensures the form state is correctly updated with the latest item data after a successful update.

@alejsdev alejsdev added the bug Something isn't working label Mar 31, 2025
@hamadaxx
Copy link

hamadaxx commented Apr 6, 2025

Hello, I reproduced the bug.
bug_reproduction.webm

@azizbenzarti
Copy link

Bug reproduction

items-dashboard-bug.mp4

@dvli20

This comment was marked as duplicate.

Copy link

@YuriiMotov YuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that issue is still relevant and this PR fixes it.

Suggestion: what if we just remove reset at all?

@YuriiMotov YuriiMotov changed the title 🐛 Fix reset behavior in EditItem mutation on success 🐛 Fix reset behavior in EditItem mutation on success Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants