diff --git a/client/coral-admin/src/routes/Community/components/Community.js b/client/coral-admin/src/routes/Community/components/Community.js index 94f064ff6..ed0ab728d 100644 --- a/client/coral-admin/src/routes/Community/components/Community.js +++ b/client/coral-admin/src/routes/Community/components/Community.js @@ -74,8 +74,6 @@ export default class Community extends Component { ); } - // console.log('Community Container', this.props); - return (
diff --git a/client/coral-admin/src/routes/Community/components/CommunityMenu.js b/client/coral-admin/src/routes/Community/components/CommunityMenu.js index 71e01d817..3e13617fe 100644 --- a/client/coral-admin/src/routes/Community/components/CommunityMenu.js +++ b/client/coral-admin/src/routes/Community/components/CommunityMenu.js @@ -2,6 +2,7 @@ import React from 'react'; import styles from './CommunityMenu.css'; import t from 'coral-framework/services/i18n'; import {Link} from 'react-router'; +import PropTypes from 'prop-types'; import CountBadge from '../../../components/CountBadge'; const CommunityMenu = ({flaggedUsernamesCount = 0}) => { @@ -25,4 +26,8 @@ const CommunityMenu = ({flaggedUsernamesCount = 0}) => { ); }; +CommunityMenu.propTypes = { + flaggedUsernamesCount: PropTypes.number, +}; + export default CommunityMenu; diff --git a/graph/typeDefs.graphql b/graph/typeDefs.graphql index e9d850bd3..5b5ab8190 100644 --- a/graph/typeDefs.graphql +++ b/graph/typeDefs.graphql @@ -848,7 +848,7 @@ type RootQuery { commentCount(query: CommentCountQuery!): Int # Return the count of users satisfied by the query. Note that this edge is - # expensive as it is not batched. Requires the `ADMIN` role. + # expensive as it is not batched. This field is restricted. userCount(query: UserCountQuery!): Int # The currently logged in user based on the request. Requires any logged in