Fixed activities for Person (#2658)

* Improved optimistic rendering

* Fixed activities for Person
This commit is contained in:
Lucas Bordeau 2023-11-22 18:56:45 +01:00 committed by GitHub
parent 7954a2b6c2
commit 02e60da923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,13 @@ export const RecordShowPage = () => {
<ShowPageRightContainer <ShowPageRightContainer
entity={{ entity={{
id: object.id, id: object.id,
type: 'Company', // TODO: refacto
type:
objectMetadataItem?.nameSingular === 'company'
? 'Company'
: objectMetadataItem?.nameSingular === 'person'
? 'Person'
: 'Person',
}} }}
timeline timeline
tasks tasks