Skip to content

Commit

Permalink
Fix list items crashing for first fields other than strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Feb 18, 2018
1 parent 5759bd6 commit 4d3f05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditorWidgets/List/ListControl.js
Expand Up @@ -194,7 +194,7 @@ export default class ListControl extends Component {
const singleField = field.get('field');
const labelField = (multiFields && multiFields.first()) || singleField;
const value = multiFields ? item.get(multiFields.first().get('name')) : singleField.get('label');
return value || `No ${ labelField.get('name') }`;
return (value || `No ${ labelField.get('name') }`).toString();
}

onSortEnd = ({ oldIndex, newIndex }) => {
Expand Down

0 comments on commit 4d3f05b

Please sign in to comment.