cern-sis / cern-sis/react-formule
admin: fix/avoid error thrown when fieldType/widget doesn't exist
- Dominant language
- JavaScript
- Stars
- 16
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
there might be case from manual editing or other (e.g when you have a schema where `ui:widget` doesnt exist in the formule context widgets), that it will throw an error and block fnctionality for the whole app
We can try and handle better
example where it breaks: https://github.com/cern-sis/react-formule/blob/master/src/admin/components/PropKeyEditorForm.jsx#L60
we can avoid it , with other workarounds
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/admin/components/PropKeyEditorForm.jsx around line 60 and reproduce the failure with a schema whose ui:widget is absent from the formule context widgets. Determine how the admin should handle the missing fieldType or widget, and confirm that it no longer throws an error or blocks the application.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100