Fix relation direction on show page

This commit is contained in:
Charles Bochet
2024-10-08 17:20:23 +02:00
parent cbdd09b00e
commit 78a7c73308

View File

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