Skip to content

Commit 8914ba9

Browse files
Fix RelationToOneSection assignment bug (#14975)
While refactoring SingleRecordPicker to support morph use case, we forgot to QA RelationDetailSection for ManyToOne.
1 parent 19be7b0 commit 8914ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSectionDropdownToOne.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const RecordDetailRelationSectionDropdownToOne = () => {
8484
if (!selectedMorphItem?.recordId || !relationFieldMetadataItem?.name)
8585
return;
8686

87-
onSubmit?.({ newValue: selectedMorphItem.recordId });
87+
onSubmit?.({ newValue: { id: selectedMorphItem.recordId } });
8888
};
8989

9090
const { createNewRecordAndOpenRightDrawer } =

0 commit comments

Comments
 (0)