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
Member

@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
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2025

As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.

@github-actions github-actions bot closed this Oct 4, 2025
@YuriiMotov YuriiMotov reopened this Oct 5, 2025
@github-actions github-actions bot removed the waiting label Oct 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

This pull request has a merge conflict that needs to be resolved.

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Dec 7, 2025
@alejsdev
Copy link
Member

alejsdev commented Dec 8, 2025

Hi @samymsa thank you for the report! This was already handled, now closing the dialog + query invalidation ensures fresh data when reopening (this version version will be released soon 🚀)
Given this, I'll close this one but thank you!

Screencast.from.2025-12-08.13-36-47.mp4

@alejsdev alejsdev closed this Dec 8, 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 conflicts Automatically generated when a PR has a merge conflict

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants