mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 06:06:45 +00:00
Fix unnecessary loadMore calls when the end of a timeline has been reached (#9581)
Fixes #9568
This commit is contained in:
parent
5d724aa129
commit
8389b496ba
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue