Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where Created by me filter fails to render #1049

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Nov 1, 2024

Motivation:

If a project is removed, ProjectDto.creator is null. TypeError: Cannot read properties of undefined (reading 'email') will be raised for the removed project.

Modifications:

  • Use null-safe operator (?) to access projectDto.creator.email

Result:

Created by me filter correctly excludes removed projects.

Motivation:

If a project is removed, `ProjectDto.creator` is null.
So `TypeError: Cannot read properties of undefined (reading 'email')`
will be raised for the removed project.

Modifications:

- Use null-safe operator (?) to access `projectDto.creator.email`

Result:

`Created by me` filter correctly excludes removed projects.
@ikhoon ikhoon added the defect label Nov 1, 2024
@ikhoon ikhoon added this to the 0.71.0 milestone Nov 1, 2024
Copy link
Contributor

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@ikhoon ikhoon merged commit 50db64f into line:main Nov 1, 2024
10 checks passed
@ikhoon ikhoon deleted the remove-project-ui-bug branch November 1, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants