Add relation for Company on people show page note creation (#1418)

* - added additional entity(company) for people

* - moved getRelationData to util function

* - remove recursion

* typo
This commit is contained in:
brendanlaschke
2023-09-07 22:38:01 +02:00
committed by GitHub
parent bd2e4307d2
commit 4348bc8e22
4 changed files with 64 additions and 18 deletions

View File

@ -95,6 +95,14 @@ export function PersonShow() {
entity={{
id: person.id,
type: ActivityTargetableEntityType.Person,
relatedEntities: person.company?.id
? [
{
id: person.company?.id,
type: ActivityTargetableEntityType.Company,
},
]
: undefined,
}}
/>
</RecoilScope>
@ -140,6 +148,14 @@ export function PersonShow() {
entity={{
id: person.id ?? '',
type: ActivityTargetableEntityType.Person,
relatedEntities: person.company?.id
? [
{
id: person.company?.id,
type: ActivityTargetableEntityType.Company,
},
]
: undefined,
}}
timeline
tasks