Merge pull request #231 from coralproject/bugfix-flagged-actions

Removed 'rejected' and 'approved' comments from flagged queue.
This commit is contained in:
David Erwin
2017-01-17 10:01:19 -05:00
committed by GitHub
@@ -77,7 +77,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