Skip to content

Comments

Better API error handling in the editor#49

Merged
dkotter merged 1 commit intodevelopfrom
fix/better-error-handling
May 14, 2025
Merged

Better API error handling in the editor#49
dkotter merged 1 commit intodevelopfrom
fix/better-error-handling

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented May 14, 2025

Description of the Change

While testing an issue with scopes, noticed if I switched from one form type that worked to a form type that didn't in the editor, we end up showing both an error state and the original form, whereas we should only show the error state. This PR fixes that by clearing out the iframe URL when an error happens.

How to test the Change

Not a great way to test. I found this because we changed scopes in our app and it broke the Booking form, while the Request form would still work. This has been addressed though so harder to reproduce this error state

Changelog Entry

Fixed - Better error handling when an API request fails.

Credits

Props @dkotter

Checklist:

…t continue to render the old form but only show the error state
@dkotter dkotter added this to the 1.0.0 milestone May 14, 2025
@dkotter dkotter self-assigned this May 14, 2025
@github-actions github-actions bot added the needs:code-review This requires code review. label May 14, 2025
@dkotter dkotter requested a review from faisal-alvi May 14, 2025 16:02
@dkotter dkotter merged commit 86b3ec0 into develop May 14, 2025
7 checks passed
@dkotter dkotter deleted the fix/better-error-handling branch May 14, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants