Skip to content

Conversation

@tomrndom
Copy link

  • use reducer data in popup to re initialize form and keep button disabled

ref: https://app.clickup.com/t/86b7n66b5

Signed-off-by: Tomás Castillo tcastilloboireau@gmail.com

Signed-off-by: Tomás Castillo <tcastilloboireau@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the "Save Changes" button in the manage addon popup remained enabled after deleting an addon, even though there were no actual changes to save. The issue occurred because the popup component was using a stale snapshot of the sponsorship data.

Changes:

  • Refactored sponsorship selection from storing the entire sponsorship object to storing only the sponsorship ID
  • The selected sponsorship is now derived from the current Redux state, ensuring the popup always receives the latest data
  • This allows the form to properly reinitialize when addon deletions update the sponsorship in the store

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

LGTM

@smarcet smarcet merged commit a81f0d3 into master Jan 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants