From 4d51fb276d7052cc01dc06a896d16c4cbbfca0ac Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 6 Apr 2017 16:44:50 +0700 Subject: [PATCH] Fix collapsing comment tree --- client/coral-embed-stream/src/Embed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 8140149a3..c0aec4ebd 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -116,7 +116,7 @@ class Embed extends Component { render () { const {activeTab} = this.state; const {closedAt, countCache = {}} = this.props.asset; - const {loading, asset, refetch, comment} = this.props.data; + const {asset, refetch, comment} = this.props.data; const {loggedIn, isAdmin, user, showSignInDialog, signInOffset} = this.props.auth; // even though the permalinked comment is the highlighted one, we're displaying its parent + replies @@ -130,7 +130,7 @@ class Embed extends Component { minHeight: document.body.scrollHeight + 200 } : {}; - if (loading || !asset) { + if (!asset) { return ; }