mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
tiny refactor
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user