diff --git a/packages/netlify-cms-widget-list/src/ListControl.js b/packages/netlify-cms-widget-list/src/ListControl.js index 28dea2a4..abc2fd4f 100644 --- a/packages/netlify-cms-widget-list/src/ListControl.js +++ b/packages/netlify-cms-widget-list/src/ListControl.js @@ -273,7 +273,10 @@ export default class ListControl extends React.Component { const isSingleField = this.getValueType() === valueTypes.SINGLE; const metadataRemovePath = isSingleField ? value.get(index) : value.get(index).valueSeq(); - const parsedMetadata = metadata && { [collectionName]: metadata.removeIn(metadataRemovePath) }; + const parsedMetadata = + metadata && !metadata.isEmpty() + ? { [collectionName]: metadata.removeIn(metadataRemovePath) } + : metadata; // Removed item object index is the last item in the list const removedItemIndex = value.count() - 1;