Skip to content

Commit

Permalink
fix(list): minification-safe element type comparison (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-kwiat authored and Matt Goo committed Dec 28, 2018
1 parent b0abc84 commit 89f5fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -8,7 +8,7 @@ sudo: required
branches:
only:
- master
- rc0.7.x
- rc0.8.0

matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion packages/list/index.js
Expand Up @@ -188,7 +188,7 @@ export default class List extends Component {
}

renderChild = (child) => {
if (child.type.name === 'ListItem') {
if (child.type === ListItem) {
return this.renderListItem(child, this.listItemCount++);
} else {
return child;
Expand Down

0 comments on commit 89f5fd2

Please sign in to comment.