Repository navigation
fix(ui): guard null labels in UpdateProjectInfoModal - #119
Closed
pancysingla-creator wants to merge 2 commits into
Closed
pancysingla-creator wants to merge 2 commits into
pancysingla-creator wants to merge 2 commits into
Conversation
Projects whose labels are null (or omitted by the API) crashed the Project Info confirm dialog on Submit with "Cannot read properties of undefined (reading 'map')", so no PUT request was sent. Default both the original and the edited labels to an empty list before mapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bitnami removed its versioned images from Docker Hub, so bitnami/postgresql:14.5.0 no longer resolves and `make it-test-api` fails at `docker compose up -d postgres`. The same image is still published under bitnamilegacy/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Default
labelsto an empty list inUpdateProjectInfoModalbefore calling.map, for both the original project and the edited project.Why
The Project Info page passes the raw project from
ProjectsContextto the modal asoriginalProject. When a project has no labels, the API returnslabels: nullor leaves the field out.originalProject.labels.map(...)then throwsTypeError: Cannot read properties of undefined (reading 'map'). The error boundary shows "Something Went Wrong", and noPUT /v1/projects/{id}is sent, so these projects cannot change stream or team from the console.Testing
Manual, local stack (docker compose):
POST /v1/projectswithoutlabels.GETreturns nolabelsfield.PUT /v1/projects/{id}→ 200 and shows "Project Info Updated!".