From 6792724281a6e04f157869d671110e33aed1d542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tha=C3=AFs?= Date: Tue, 12 Dec 2023 11:28:09 +0100 Subject: [PATCH] feat: save Relation field description on creation (#2940) Closes #2896 --- .../object-metadata/utils/formatRelationMetadataInput.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts b/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts index 19ca7f64d0..94de1d58a1 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/formatRelationMetadataInput.ts @@ -33,24 +33,26 @@ export const formatRelationMetadataInput = ( : input.connect; const { - description, + description: fromDescription, icon: fromIcon, label: fromLabel, name: fromName, } = formatFieldMetadataItemInput(fromField); const { + description: toDescription, icon: toIcon, label: toLabel, name: toName, } = formatFieldMetadataItemInput(toField); return { - description, + fromDescription, fromIcon, fromLabel, fromName, fromObjectMetadataId, relationType, + toDescription, toIcon, toLabel, toName,