Skip to content

Commit bf7283f

Browse files
ClearlyClairehiyuki2578
authored andcommitted
Fix unnecessary loadMore calls when the end of a timeline has been reached (mastodon#9581)
Fixes mastodon#9568
1 parent fe9c5a1 commit bf7283f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/javascript/mastodon/components/scrollable_list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default class ScrollableList extends PureComponent {
4949
const { scrollTop, scrollHeight, clientHeight } = this.node;
5050
const offset = scrollHeight - scrollTop - clientHeight;
5151

52-
if (400 > offset && this.props.onLoadMore && !this.props.isLoading) {
52+
if (400 > offset && this.props.onLoadMore && this.props.hasMore && !this.props.isLoading) {
5353
this.props.onLoadMore();
5454
}
5555

0 commit comments

Comments
 (0)