From 78a7c733086d07a95d829f4449b234e6d8f08e06 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Tue, 8 Oct 2024 17:20:23 +0200 Subject: [PATCH] Fix relation direction on show page --- .../components/RecordDetailRelationSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx index edd49b3f8..4e2d19403 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx @@ -72,7 +72,7 @@ export const RecordDetailRelationSection = ({ // TODO: use new relation type const isToOneObject = relationType === RelationDefinitionType.ManyToOne; - const isToManyObjects = RelationDefinitionType.OneToMany; + const isToManyObjects = relationType === RelationDefinitionType.OneToMany; const relationRecords: ObjectRecord[] = fieldValue && isToOneObject