Removing rejected and approved comments from flagged feed.

This commit is contained in:
David Jay
2017-01-12 17:32:48 -05:00
parent 31b7dac48a
commit f3f5397459
@@ -64,7 +64,11 @@ class ModerationContainer extends React.Component {
const {comments} = this.props;
const premodIds = comments.ids.filter(id => comments.byId[id].status === 'premod');
const rejectedIds = comments.ids.filter(id => comments.byId[id].status === 'rejected');
const flaggedIds = comments.ids.filter(id => comments.byId[id].flagged === true);
const flaggedIds = comments.ids.filter(id =>
comments.byId[id].flagged === true &&
comments.byId[id].status !== 'rejected' &&
comments.byId[id].status !== 'accepted'
);
return (
<ModerationQueue