Skip to content

The open alternative to Salesforce, designed for AI.

Fixed activities for Person (#2658)

Lucas Bordeau02e60da923f2
diff --git a/front/src/modules/object-record/components/RecordShowPage.tsx b/front/src/modules/object-record/components/RecordShowPage.tsx
index b83b17c369a..53e1f95e58e 100644
--- a/front/src/modules/object-record/components/RecordShowPage.tsx
+++ b/front/src/modules/object-record/components/RecordShowPage.tsx
@@ -193,7 +193,13 @@ export const RecordShowPage = () => {
<ShowPageRightContainer
entity={{
id: object.id,
- type: 'Company',
+ // TODO: refacto
+ type:
+ objectMetadataItem?.nameSingular === 'company'
+ ? 'Company'
+ : objectMetadataItem?.nameSingular === 'person'
+ ? 'Person'
+ : 'Person',
}}
timeline
tasks