Reset isLoadingMoreTop flag when switching channels (#2224)

This commit is contained in:
Elias Nahum 2018-10-05 17:45:40 -03:00 committed by GitHub
parent 4e251d392a
commit 811f3edd50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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});
}