mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
This commit is contained in:
parent
d5589e6fb9
commit
3a4b11186d
|
|
@ -74,10 +74,9 @@ class ListTimeline extends PureComponent {
|
|||
}
|
||||
|
||||
componentDidUpdate (prevProps) {
|
||||
const { dispatch } = this.props;
|
||||
const { id } = prevProps.params;
|
||||
const { dispatch, params: {id} } = this.props;
|
||||
|
||||
if (id !== this.props.params.id) {
|
||||
if (id !== prevProps.params.id) {
|
||||
if (this.disconnect) {
|
||||
this.disconnect();
|
||||
this.disconnect = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user