Fix collapsing comment tree

This commit is contained in:
Chi Vinh Le
2017-04-06 16:44:50 +07:00
parent be64905426
commit 4d51fb276d
+2 -2
View File
@@ -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 <Spinner />;
}