Commit 515c7c64 authored by Chris's avatar Chris Committed by GitHub

PLT-7792: fix channel loading animation (#104)

* fix channel loading animation

* eslint fix
parent 16d9f85b
......@@ -498,7 +498,7 @@ export default class PostList extends React.PureComponent {
const posts = this.props.posts || [];
const channel = this.props.channel;
if ((!posts && this.state.isDoingInitialLoad) || channel == null) {
if ((posts.length === 0 && this.state.isDoingInitialLoad) || channel == null) {
return (
<div id='post-list'>
<LoadingScreen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment