feat: save Relation field description on creation (#2940)

Closes #2896
This commit is contained in:
Thaïs
2023-12-12 11:28:09 +01:00
committed by GitHub
parent 95002f5f9a
commit 6792724281

View File

@ -33,24 +33,26 @@ export const formatRelationMetadataInput = (
: input.connect; : input.connect;
const { const {
description, description: fromDescription,
icon: fromIcon, icon: fromIcon,
label: fromLabel, label: fromLabel,
name: fromName, name: fromName,
} = formatFieldMetadataItemInput(fromField); } = formatFieldMetadataItemInput(fromField);
const { const {
description: toDescription,
icon: toIcon, icon: toIcon,
label: toLabel, label: toLabel,
name: toName, name: toName,
} = formatFieldMetadataItemInput(toField); } = formatFieldMetadataItemInput(toField);
return { return {
description, fromDescription,
fromIcon, fromIcon,
fromLabel, fromLabel,
fromName, fromName,
fromObjectMetadataId, fromObjectMetadataId,
relationType, relationType,
toDescription,
toIcon, toIcon,
toLabel, toLabel,
toName, toName,