Sub-Pages — Troubleshooting¶
Part of: Sub-Pages guide See also: Best Practices | Data Hook | Checklist
Common issues when creating sub-pages and their solutions. Issues are organized by category.
Troubleshooting Guides¶
File |
Contents |
|---|---|
Form fields not editable, metadata errors, table data handling |
|
API response handling, member operations, unknown option errors |
|
Save/Revert buttons stay enabled after saving |
Quick Reference¶
Symptom |
Guide |
Section |
|---|---|---|
Form fields not editable |
Form Fields Not Editable |
|
Save button always disabled |
Form Fields Not Editable |
|
Metadata errors in console |
Metadata Errors |
|
Table data not displaying correctly |
Table Data Handling |
|
Member add/remove not working |
API Response Handling |
|
“Unknown option” API error |
Unknown option error |
|
Save/Revert buttons stay enabled |
Full guide |
Common Root Causes¶
Data Transformation Issues¶
API returns arrays, UI expects strings → Use
apiTo<Entity>conversionField not in
simpleValuesset → Add to utils file
API Structure Issues¶
Member fields sent to
*_modendpoint → Filter out member fieldsWrong error location checked → Error is at top level, not in result
State Management Issues¶
originalEntitynot synced after save → Update inresetValuesRace condition in useEffect → Don’t update entity state in onSave
Post-Generation Quality Checks¶
See 00-best-practices.md for the required validation commands.
Fix all errors before committing.