Clean up redundant shouldUpdateScroll definitions

This commit is contained in:
Thibaut Girka
2019-07-20 16:07:55 +02:00
committed by ThibG
parent e58af04287
commit 6db5669818
9 changed files with 0 additions and 46 deletions

View File

@ -64,11 +64,6 @@ export default class Followers extends ImmutablePureComponent {
this.props.dispatch(expandFollowers(this.props.params.accountId));
}, 300, { leading: true });
shouldUpdateScroll = (prevRouterProps, { location }) => {
if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
return !(location.state && location.state.mastodonModalOpen);
}
setRef = c => {
this.column = c;
}
@ -102,7 +97,6 @@ export default class Followers extends ImmutablePureComponent {
scrollKey='followers'
hasMore={hasMore}
onLoadMore={this.handleLoadMore}
shouldUpdateScroll={this.shouldUpdateScroll}
prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />}
alwaysPrepend
emptyMessage={emptyMessage}