Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 95fe4e1

Browse files
dan-kwiatMatt Goo
authored and
Matt Goo
committed
fix(list): minification-safe element type comparison (#509)
1 parent a8c26c1 commit 95fe4e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sudo: required
88
branches:
99
only:
1010
- master
11-
- rc0.7.x
11+
- rc0.8.0
1212

1313
matrix:
1414
include:

packages/list/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default class List extends Component {
188188
}
189189

190190
renderChild = (child) => {
191-
if (child.type.name === 'ListItem') {
191+
if (child.type === ListItem) {
192192
return this.renderListItem(child, this.listItemCount++);
193193
} else {
194194
return child;

0 commit comments

Comments
 (0)