Skip to content

Commit

Permalink
Fix select widgets with object type options.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Dec 12, 2017
1 parent 24307e3 commit b091e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EditorWidgets/Select/SelectControl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { isMap } from 'immutable';
import { Map } from 'immutable';

export default class SelectControl extends React.Component {
static propTypes = {
Expand Down Expand Up @@ -40,7 +40,7 @@ export default class SelectControl extends React.Component {
if (typeof option === 'string') {
return { label: option, value: option };
}
return isMap(option) ? option.toJS() : option;
return Map.isMap(option) ? option.toJS() : option;
}),
];

Expand Down

0 comments on commit b091e39

Please sign in to comment.