Merge branch 'master' into keep-drafts

This commit is contained in:
Kim Gardner
2018-02-06 11:36:31 -05:00
committed by GitHub
4 changed files with 26 additions and 5 deletions
@@ -397,6 +397,13 @@ class ModerationQueue extends React.Component {
const index = comments.findIndex(
comment => comment.id === selectedCommentId
);
// This can happen temporarily when we call redux to change the selected comment
// but it didn't fully take effect yet.
if (index === -1) {
return null;
}
const comment = comments[index];
return (
<div className={styles.root}>
@@ -414,7 +421,7 @@ class ModerationQueue extends React.Component {
dangling={
!this.props.commentBelongToQueue(this.props.activeTab, comment)
}
/>;
/>
</div>
);
}
@@ -56,6 +56,7 @@
width: 100%;
border-left: none;
border-right: none;
white-space: pre-wrap;
a {
color: rgb(44, 44, 44);