MM-12652 Fix for android thread crash (#2257)

This commit is contained in:
Sudheer 2018-10-12 00:35:48 +05:30 committed by GitHub
parent a78482c942
commit bcad54b6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,10 +79,11 @@ export default class PostList extends PostListBase {
} = this.props;
const otherProps = {};
const footer = typeof this.props.renderFooter === 'object' ? this.props.renderFooter : this.props.renderFooter();
if (postIds.length) {
otherProps.ListFooterComponent = this.props.renderFooter();
otherProps.ListFooterComponent = footer;
} else {
otherProps.ListEmptyComponent = this.props.renderFooter();
otherProps.ListEmptyComponent = footer;
}
const hasPostsKey = postIds.length ? 'true' : 'false';