Fix RelationToOneSection assignment bug (#14975)

While refactoring SingleRecordPicker to support morph use case, we
forgot to QA RelationDetailSection for ManyToOne.
This commit is contained in:
Charles Bochet
2025-10-08 11:30:42 +02:00
committed by GitHub
parent 19be7b0a7c
commit 8914ba9fec
@@ -84,7 +84,7 @@ export const RecordDetailRelationSectionDropdownToOne = () => {
if (!selectedMorphItem?.recordId || !relationFieldMetadataItem?.name)
return;
onSubmit?.({ newValue: selectedMorphItem.recordId });
onSubmit?.({ newValue: { id: selectedMorphItem.recordId } });
};
const { createNewRecordAndOpenRightDrawer } =