Add extra check before rendering emojis (#5879)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
060b9f92c3
Коммит
31830ffc7b
@@ -82,17 +82,17 @@ export default class ReactionListContainer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if (!this.props.post.has_reactions) {
|
if (this.props.post.has_reactions && this.state.reactions.length > 0) {
|
||||||
return null;
|
return (
|
||||||
|
<ReactionListView
|
||||||
|
post={this.props.post}
|
||||||
|
currentUserId={this.props.currentUserId}
|
||||||
|
reactions={this.state.reactions}
|
||||||
|
emojis={this.state.emojis}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return null;
|
||||||
<ReactionListView
|
|
||||||
post={this.props.post}
|
|
||||||
currentUserId={this.props.currentUserId}
|
|
||||||
reactions={this.state.reactions}
|
|
||||||
emojis={this.state.emojis}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user