Skip to content
Snippets Groups Projects
Commit 8389b496 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix unnecessary loadMore calls when the end of a timeline has been reached (#9581)

Fixes #9568
parent 5d724aa1
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ export default class ScrollableList extends PureComponent {
const { scrollTop, scrollHeight, clientHeight } = this.node;
const offset = scrollHeight - scrollTop - clientHeight;
if (400 > offset && this.props.onLoadMore && !this.props.isLoading) {
if (400 > offset && this.props.onLoadMore && this.props.hasMore && !this.props.isLoading) {
this.props.onLoadMore();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment