팀 이름 수정 UI 연결 - #117
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.
Reviewed commit: 570e2c3fda
ℹ️ 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".
| projectName, | ||
| }: UpdateProjectGroupNameRequest) { | ||
| return apiRequest<void>(`/project-groups/${projectGroupId}/name`, { | ||
| body: JSON.stringify({ projectName }), |
There was a problem hiding this comment.
Use the JSON request option for name updates
When this runs against the real backend, this raw body path does not get the Content-Type: application/json header because apiRequest only adds that header for the json option. The new OpenAPI endpoint declares an application/json request body, so servers that rely on the media type for JSON parsing/content negotiation can reject or ignore the project name update even though the MSW handler accepts request.json(). Use json: { projectName } here like the other API calls.
Useful? React with 👍 / 👎.
Summary
Validation
Closes #116