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

@ -40,11 +40,6 @@ export default class Reblogs extends ImmutablePureComponent {
}
}
shouldUpdateScroll = (prevRouterProps, { location }) => {
if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
return !(location.state && location.state.mastodonModalOpen);
}
handleHeaderClick = () => {
this.column.scrollTop();
}
@ -77,7 +72,6 @@ export default class Reblogs extends ImmutablePureComponent {
<ScrollableList
scrollKey='reblogs'
shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>