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

Commit 5ee55f4

Browse files
committed
fix(list): minification-safe element type comparison
1 parent 179b865 commit 5ee55f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)