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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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