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

Fixes #9568
lolsob-rspec
ThibG 2018-12-19 22:23:16 +01:00 committed by Eugen Rochko
parent dcab109a1c
commit 240d41b3ca
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}