From 85a0c42fad5cb21a07c674a45fc159569865271a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Jun 2018 18:26:05 +0300 Subject: fix thread loading fragment --- vnext/src/components/Thread.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index a404cf57..2dab4250 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -76,7 +76,7 @@ export default class Thread extends React.Component { }).then(res => { this.loadReplies() }) - .catch(console.log) + .catch(console.log) } render() { @@ -88,7 +88,7 @@ export default class Thread extends React.Component { { this.state.msg ? ( - { this.state.active === (msg.rid || 0) && } + {this.state.active === (msg.rid || 0) && } ) : ( @@ -103,7 +103,7 @@ export default class Thread extends React.Component {
{ this.props.visitor.uid > 0 && - + }

{msg.replies && `Replies (${msg.replies})`}

@@ -151,7 +151,7 @@ export default class Thread extends React.Component { ·  - { this.state.active === msg.rid && } + {this.state.active === msg.rid && } ) : ( @@ -167,8 +167,10 @@ export default class Thread extends React.Component { ) : ( - - ) + + + + ) } ) -- cgit v1.2.3