From ae63e9a97599451de105ed8837eec32319c13016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Mon, 8 Oct 2018 16:43:54 -0300 Subject: [PATCH] tiny refactor --- src/core/client/stream/queries/CommentsCountQuery.tsx | 3 ++- src/core/common/config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/client/stream/queries/CommentsCountQuery.tsx b/src/core/client/stream/queries/CommentsCountQuery.tsx index be2a034f7..f589a26fc 100644 --- a/src/core/client/stream/queries/CommentsCountQuery.tsx +++ b/src/core/client/stream/queries/CommentsCountQuery.tsx @@ -18,6 +18,7 @@ interface InnerProps extends PropTypesOf { class CommentsCountQuery extends Component { public render() { const { assetID, assetURL } = this.props.local; + const { local: _, ...rest } = this.props; return ( query={graphql` @@ -42,7 +43,7 @@ class CommentsCountQuery extends Component { return ( ); } diff --git a/src/core/common/config.ts b/src/core/common/config.ts index 972ac9b83..e02e44558 100644 --- a/src/core/common/config.ts +++ b/src/core/common/config.ts @@ -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", },