-
Notifications
You must be signed in to change notification settings - Fork 84
Fix repeat clicks on "delete" on custom fields causing errors #7115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix repeat clicks on "delete" on custom fields causing errors #7115
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Greptile OverviewGreptile SummaryFixes a bug where repeatedly clicking "Delete" in the confirmation modal would trigger multiple delete requests, resulting in error toasts after the first successful deletion. Key changes:
The approach follows existing patterns in the codebase (e.g., Confidence Score: 4/5
Important Files ChangedFile Analysis
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
clients/admin-ui/src/features/custom-fields/CustomFieldForm.tsx
Outdated
Show resolved
Hide resolved
| title: "Delete custom field?", | ||
| content: ( | ||
| <Typography.Paragraph> | ||
| Are you sure you want to delete <strong>{initialField?.name}</strong>{" "} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing the ?
| Are you sure you want to delete <strong>{initialField?.name}</strong>{" "} | |
| Are you sure you want to delete <strong>{initialField?.name}</strong>?{" "} |
…tps://github.com/ethyca/fides into jpople/eng-2177/repeat-click-delete-custom-field
Ticket ENG-2177
Description Of Changes
Fixes a bug where repeatedly clicking on the "delete" button in the confirmation modal on deleting a custom field would create separate delete requests, resulting in a bunch of error toasts after the redirect.
Code Changes
messageContext)Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works