Skip to content

Conversation

@subha0319
Copy link
Owner

The PUT /api/projects/:id endpoint returned an unpopulated project object, which was inconsistent with getProjectById. This caused UI bugs on the frontend after an edit.

This commit updates the updateProject controller to re-fetch, populate (owner, members), and add the isOwner flag to the project object before returning it.

This ensures the API response is consistent and resolves the UI bug on the frontend.

Fixes #31

The PUT /api/projects/:id endpoint returned an unpopulated project
object, which was inconsistent with getProjectById. This caused
UI bugs on the frontend after an edit.

This commit updates the `updateProject` controller to re-fetch,
populate (`owner`, `members`), and add the `isOwner` flag to
the project object before returning it.

This ensures the API response is consistent and resolves the
UI bug on the frontend.

Fixes #31
@vercel
Copy link

vercel bot commented Nov 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
project-manager Ready Ready Preview Comment Nov 2, 2025 10:43am

@subha0319 subha0319 merged commit 1a4877b into main Nov 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] UI elements disappear after editing project details

1 participant