Skip to content

Commit

Permalink
feat(search): avoid error if ownerorg is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Aug 26, 2023
1 parent 0a490d1 commit b93b475
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ export class RecordPreviewFeedComponent extends RecordPreviewComponent {
}

get hasOrganization() {
return true // FIXME: this doesn't make sense anymore, there should always be an owner org
return !!this.record.ownerOrganization
}
get hasLogo() {
return (
'logoUrl' in this.record.ownerOrganization &&
!!this.record.ownerOrganization.logoUrl
)
return !!this.record.ownerOrganization?.logoUrl
}
get hasOnlyPerson() {
return false // FIXME: this doesn't make sense anymore, there should always be an owner org
Expand Down

0 comments on commit b93b475

Please sign in to comment.