diff --git a/app/components/post_list/post_list.js b/app/components/post_list/post_list.js index 3cc733f04..ddbae2381 100644 --- a/app/components/post_list/post_list.js +++ b/app/components/post_list/post_list.js @@ -281,7 +281,9 @@ export default class PostList extends PureComponent { scrollToBottom = () => { setTimeout(() => { - this.flatListRef.current.scrollToOffset({offset: 0, animated: true}); + if (this.flatListRef && this.flatListRef.current) { + this.flatListRef.current.scrollToOffset({offset: 0, animated: true}); + } }, 250); };