MM-12652 Fix for android thread crash
This commit is contained in:
parent
62026e375a
commit
e480dcfacb
1 changed files with 3 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue