Skip to content

Commit d203514

Browse files
committed
Fixed build failure
1 parent e88b652 commit d203514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/InfiniteScroll.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ var InfiniteScroll = (function(_Component) {
166166
{
167167
key: 'getParentElement',
168168
value: function getParentElement(el) {
169-
var scrollParent = this.props.getScrollParent();
169+
var scrollParent =
170+
this.props.getScrollParent && this.props.getScrollParent();
170171
if (scrollParent != null) {
171172
return scrollParent;
172173
}

0 commit comments

Comments
 (0)