tiny refactor

This commit is contained in:
Belén Curcio
2018-10-08 16:43:54 -03:00
parent ec539c2dae
commit ae63e9a975
2 changed files with 3 additions and 2 deletions
@@ -18,6 +18,7 @@ interface InnerProps extends PropTypesOf<typeof Tab> {
class CommentsCountQuery extends Component<InnerProps> {
public render() {
const { assetID, assetURL } = this.props.local;
const { local: _, ...rest } = this.props;
return (
<QueryRenderer<QueryTypes>
query={graphql`
@@ -42,7 +43,7 @@ class CommentsCountQuery extends Component<InnerProps> {
return (
<CommentCountTab
commentCount={props.asset.commentCounts.totalVisible}
{...this.props}
{...rest}
/>
);
}
+1 -1
View File
@@ -37,7 +37,7 @@ const config = convict({
enable_graphiql: {
doc: "When true, this will enable the GraphiQL routes",
format: Boolean,
default: true,
default: false,
env: "ENABLE_GRAPHIQL",
arg: "enableGraphiQL",
},