Fix person activity creation broken
This commit is contained in:
@ -172,7 +172,12 @@ export const RecordShowPage = () => {
|
||||
key="add"
|
||||
entity={{
|
||||
id: object.id,
|
||||
type: 'Company',
|
||||
type:
|
||||
objectMetadataItem?.nameSingular === 'company'
|
||||
? 'Company'
|
||||
: objectMetadataItem?.nameSingular === 'person'
|
||||
? 'Person'
|
||||
: 'Custom',
|
||||
}}
|
||||
/>
|
||||
</PageHeader>
|
||||
|
||||
Reference in New Issue
Block a user