From 684735311c9929c88c8c7ebf3c17c41c4f5e4e83 Mon Sep 17 00:00:00 2001 From: Caleb Date: Sat, 17 Feb 2018 19:38:02 -0700 Subject: [PATCH] Fix list items crashing for first fields other than strings. --- src/components/EditorWidgets/List/ListControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditorWidgets/List/ListControl.js b/src/components/EditorWidgets/List/ListControl.js index aec504eba38b..7ff6dc15d9bc 100644 --- a/src/components/EditorWidgets/List/ListControl.js +++ b/src/components/EditorWidgets/List/ListControl.js @@ -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 }) => {