diff --git a/packages/decap-cms-core/src/reducers/mediaLibrary.ts b/packages/decap-cms-core/src/reducers/mediaLibrary.ts index 823f4c7886d3..433b1794b093 100644 --- a/packages/decap-cms-core/src/reducers/mediaLibrary.ts +++ b/packages/decap-cms-core/src/reducers/mediaLibrary.ts @@ -91,7 +91,7 @@ function mediaLibrary(state = Map(defaultState), action: MediaLibraryAction) { map.set('privateUpload', privateUpload); map.set('config', libConfig); map.set('field', field ?? ''); - map.set('value', value == '' && libConfig.get('multiple') ? [] : (value ?? '')); + map.set('value', value == '' && libConfig.get('multiple') ? [] : value ?? ''); map.set('replaceIndex', replaceIndex ?? false); }); }