Skip to content

Conversation

@shashjar
Copy link
Member

@shashjar shashjar commented Nov 7, 2025

Defensively checking the existence of project to protect against project deletion and a subsequent re-render.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 7, 2025
@shashjar shashjar requested a review from a team November 7, 2025 17:32
@shashjar shashjar marked this pull request as ready for review November 7, 2025 17:32
[navigate, organization.slug, routes, location]
);

if (!project?.id) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered instead modifying ProjectContext to update the project state only if the project ID still exists in the ProjectsStore (and therefore hasn't been deleted), but I don't want to set the pattern that those two can be kept out of date with each other. So I decided to just add a defensive check here since this bug is scoped only to project deletion.

@shashjar shashjar merged commit 200c06c into master Nov 7, 2025
47 checks passed
@shashjar shashjar deleted the defensive-project-check-in-project-general-settings branch November 7, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants