diff --git a/assets/js/src/form/fields/selection.jsx b/assets/js/src/form/fields/selection.jsx index 0d75fa1593..0576fbed59 100644 --- a/assets/js/src/form/fields/selection.jsx +++ b/assets/js/src/form/fields/selection.jsx @@ -108,10 +108,11 @@ const Selection = React.createClass({ }; }, processResults: function processResults(response) { - return { - results: response.data.map(item => ( - { id: item.id || item.value, text: item.name || item.text } - )), + return { results: (!_.has(response, 'data')) ? + [] : + response.data.map(item => + ({ id: item.id || item.value, text: item.name || item.text }) + ), }; }, },