Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(List): empty array parent--item (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraft authored and samouss committed Aug 6, 2018
1 parent d2c0945 commit bb85fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-instantsearch-dom/src/components/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class List extends Component {
};

renderItem = (item, resetQuery) => {
const items = item.items && (
const items = item.items && item.items.length && (
<ul className={this.props.cx('list', 'list--child')}>
{item.items
.slice(0, this.getLimit())
Expand Down

0 comments on commit bb85fb5

Please sign in to comment.