Skip to content

Commit

Permalink
fix: lint medialibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Aug 23, 2023
1 parent 07d2348 commit 39932d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/decap-cms-core/src/reducers/mediaLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit 39932d2

Please sign in to comment.