Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apps/copilots/src/services/copilot-opportunities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function copilotOpportunityFactory(data: any): CopilotOpportunity {
return {
...data,
...data.data,
projectName: data.project.name,
projectName: data.project?.name,
Copy link

Choose a reason for hiding this comment

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

The optional chaining operator (?.) is used here to safely access the name property of project. Consider handling the case where project might be undefined or null to avoid potential issues if projectName is expected to be a non-null value.

}
}

Expand Down