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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user