Reset isLoadingMoreTop flag when switching channels (#2224)
This commit is contained in:
parent
dff9628b6e
commit
faa3a55b3d
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