Fix person activity creation broken

This commit is contained in:
Charles Bochet
2023-11-24 18:13:54 +01:00
parent 0c56989cb1
commit 148fe05e26
4 changed files with 15 additions and 22 deletions

View File

@ -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>