diff --git a/packages/decap-cms-widget-relation/src/RelationControl.js b/packages/decap-cms-widget-relation/src/RelationControl.js index 9c9e30a212ee..226ba652f54b 100644 --- a/packages/decap-cms-widget-relation/src/RelationControl.js +++ b/packages/decap-cms-widget-relation/src/RelationControl.js @@ -259,11 +259,16 @@ export default class RelationControl extends React.Component { //set metadata this.mounted && - onChange(filteredValue.length === 1 ? filteredValue[0] : fromJS(filteredValue), { - [field.get('name')]: { - [field.get('collection')]: metadata, + onChange( + filteredValue.length === 1 && !this.isMultiple() + ? filteredValue[0] + : fromJS(filteredValue), + { + [field.get('name')]: { + [field.get('collection')]: metadata, + }, }, - }); + ); } }