adds object of useful error when widget fails to render - #5141
Merged
Merged
Conversation
haroun
suggested changes
Nov 11, 2025
ValJed
force-pushed
the
pro-8196-improve-render-widget-error
branch
from
November 13, 2025 16:33
dbaec91 to
0e8fe9b
Compare
haroun
suggested changes
Nov 14, 2025
| widgetTitle: widget.title, | ||
| widgetType: props.type, | ||
| documentId: props.docId, | ||
| errors: e.body.data?.errors || [] |
Contributor
There was a problem hiding this comment.
Sorry I missed it the first time. I don't think we can be absolutely sure that e.body will be an object. I'll do e.body?.data?.errors instead
ValJed
commented
Nov 18, 2025
| widgetTitle: widget.title, | ||
| widgetType: props.type, | ||
| documentId: props.docId, | ||
| errors: e.body.data?.errors || [] |
Contributor
Author
There was a problem hiding this comment.
Could name it fieldErrors maybe ?
| widgetTitle: widget.title, | ||
| widgetType: props.type, | ||
| documentId: props.docId, | ||
| errors: e.body.data?.errors || [] |
haroun
approved these changes
Nov 18, 2025
haroun
added a commit
that referenced
this pull request
Nov 19, 2025
* main: PRO-8708: bring back passing of the actual area options in the form developers expect to see them to custom insert menu item components (#5162) adds object of useful error when widget fails to render (#5141) add addMissingSchemaFields task (#5101) Pro 8360 box field (#5142) Pro 8671 fix localize modal (#5156) longPolling: false option (#5154) PRO-5472: file widget (#5126)
haroun
added a commit
that referenced
this pull request
Nov 19, 2025
* main: PRO-8708: bring back passing of the actual area options in the form developers expect to see them to custom insert menu item components (#5162) adds object of useful error when widget fails to render (#5141) add addMissingSchemaFields task (#5101) Pro 8360 box field (#5142) Pro 8671 fix localize modal (#5156) longPolling: false option (#5154) PRO-5472: file widget (#5126)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an object of useful info when a widget fails to render:
Error will list fields that failed.
What are the specific steps to test this change?
Check error when widget fails to render.
What kind of change does this PR introduce?
Make sure the PR fulfills these requirements: