Skip to content
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

Refactor the exhibit contact delete 404 handler #3426

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

taylor-steve
Copy link
Contributor

Minor refactor for the code that handles the situation where two users/browser tabs are looking at the same set of exhibit contacts and both try to delete the same contact.

The current implementation's handler is overscoped and event.detail.fetchResponse could be undefined, which can cause errors in applications that use Turbo. This gets us back to a working state.

This removes some jQuery for events we aren't using any more after the move from v4.

@taylor-steve taylor-steve marked this pull request as ready for review January 31, 2025 18:35
@jcoyne jcoyne merged commit c7e6517 into main Jan 31, 2025
6 checks passed
@jcoyne jcoyne deleted the refactor-contact-delete-error-handler branch January 31, 2025 18:39
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.

2 participants