Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <SelectItem value="beginner">Beginner</SelectItem> | ||
| <SelectItem value="intermediate">Intermediate</SelectItem> | ||
| <SelectItem value="advanced">Advanced</SelectItem> | ||
| <SelectItem value="expert">Expert</SelectItem> |
There was a problem hiding this comment.
Align skill level option values with stored strings
Select uses defaultValue={skill.level} from existing records, but the rendered options now have lowercase value attributes (e.g. "beginner"). When an existing skill with level "Beginner" is edited and the user submits without changing the select, no option matches the default so the field submits null. The update handler then tries to write level: null to Prisma's non-nullable Skill.level column, causing the save request to fail. The option values should match the stored casing or the code should normalize both sides before submission.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_69064eb9d530832caca2c65effcb1016