Fix list items crashing for first fields other than strings.
This commit is contained in:
parent
6946faab7d
commit
684735311c
@ -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 }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user