From 43a6c6ff15cddbd0351746234215b569681b3ede Mon Sep 17 00:00:00 2001 From: Caleb Date: Tue, 12 Dec 2017 13:37:42 -0700 Subject: [PATCH] Fix select widgets with object type options. --- src/components/EditorWidgets/Select/SelectControl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/EditorWidgets/Select/SelectControl.js b/src/components/EditorWidgets/Select/SelectControl.js index 04a2aafbbad9..f9570d7ec88e 100644 --- a/src/components/EditorWidgets/Select/SelectControl.js +++ b/src/components/EditorWidgets/Select/SelectControl.js @@ -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 = { @@ -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; }), ];