diff --git a/src/discussions/learners/LearnerPostsView.jsx b/src/discussions/learners/LearnerPostsView.jsx index 5f9ba32a..6a11cee7 100644 --- a/src/discussions/learners/LearnerPostsView.jsx +++ b/src/discussions/learners/LearnerPostsView.jsx @@ -50,7 +50,7 @@ function LearnerPostsView({ intl }) { page: pageNum, filters: postFilter, orderBy: postFilter.orderBy, - countFlagged: userHasModerationPrivileges || userIsStaff, + countFlagged: (userHasModerationPrivileges || userIsStaff) || undefined, }; dispatch(fetchUserPosts(courseId, params)); diff --git a/src/discussions/posts/PostsList.jsx b/src/discussions/posts/PostsList.jsx index 05b0f344..40c721b7 100644 --- a/src/discussions/posts/PostsList.jsx +++ b/src/discussions/posts/PostsList.jsx @@ -44,7 +44,7 @@ function PostsList({ posts, topics, intl }) { filters, page: pageNum, author: showOwnPosts ? authenticatedUser.username : null, - countFlagged: userHasModerationPrivileges || userIsStaff, + countFlagged: (userHasModerationPrivileges || userIsStaff) || undefined, topicIds, };