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 authored and erquhart committed Feb 23, 2018
1 parent 6946faa commit 6847353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditorWidgets/List/ListControl.js
Original file line number Diff line number Diff line change
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 6847353

Please sign in to comment.