Skip to content

Commit

Permalink
fix image editor component
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Aug 28, 2018
1 parent 82f49a0 commit 5cca4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/netlify-cms-core/src/actions/mediaLibrary.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Map } from 'immutable';
import { actions as notifActions } from 'redux-notifications';
import { currentBackend } from 'src/backend';
import { createAssetProxy } from 'ValueObjects/AssetProxy';
Expand Down Expand Up @@ -62,7 +63,7 @@ export function openMediaLibrary(payload = {}) {
const state = getState();
const mediaLibrary = state.mediaLibrary.get('externalLibrary');
if (mediaLibrary) {
const { controlID: id, value, config, forImage } = payload;
const { controlID: id, value, config = Map(), forImage } = payload;
mediaLibrary.show({ id, value, config: config.toJS(), imagesOnly: forImage });
}
dispatch({ type: MEDIA_LIBRARY_OPEN, payload });
Expand Down

0 comments on commit 5cca4d0

Please sign in to comment.