Reset isLoadingMoreTop flag when switching channels (#2224)
This commit is contained in:
parent
4e251d392a
commit
811f3edd50
1 changed files with 4 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ export default class ChannelPostList extends PureComponent {
|
|||
visiblePostIds = this.getVisiblePostIds(nextProps);
|
||||
}
|
||||
|
||||
if (this.props.channelId !== nextProps.channelId) {
|
||||
this.isLoadingMoreTop = false;
|
||||
}
|
||||
|
||||
this.setState({visiblePostIds});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue