diff --git a/src/components/List/List.tsx b/src/components/List/List.tsx index 45db569dad..79cbf999aa 100644 --- a/src/components/List/List.tsx +++ b/src/components/List/List.tsx @@ -2,6 +2,7 @@ import React from 'react'; +import isObject from 'lodash/isObject'; import {SortableContainer, SortableElement} from 'react-sortable-hoc'; import AutoSizer, {Size} from 'react-virtualized-auto-sizer'; import {VariableSizeList as ListContainer} from 'react-window'; @@ -211,7 +212,7 @@ export class List extends React.Component, ListState['renderItem'] = (item, isItemActive, itemIndex) => { const {onLoadMore} = this.props; - if ('value' in item && item.value === this.loadingItem.value) { + if (isObject(item) && 'value' in item && item.value === this.loadingItem.value) { return ( );