Fix setting injection with suggestions from CR

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
This commit is contained in:
Radosław Kowalski 2020-08-07 11:09:11 +02:00 committed by GitHub
parent f9ff320f48
commit eece5f9f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -175,7 +175,7 @@
onEditQuery: onEditQuery, onEditQuery: onEditQuery,
onEditVariables: onEditVariables, onEditVariables: onEditVariables,
onEditOperationName: onEditOperationName, onEditOperationName: onEditOperationName,
headerEditorEnabled: GRAPHENE_SETTINGS.graphiqlHeaderEditorEnabled || true, headerEditorEnabled: GRAPHENE_SETTINGS.graphiqlHeaderEditorEnabled,
query: parameters.query, query: parameters.query,
}; };
if (parameters.variables) { if (parameters.variables) {

View File

@ -45,9 +45,7 @@ add "&raw" to the end of the URL within a browser.
{% if subscription_path %} {% if subscription_path %}
subscriptionPath: "{{subscription_path}}", subscriptionPath: "{{subscription_path}}",
{% endif %} {% endif %}
{% if header_editor_enabled %} graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled|yesno:"true,false" }},
graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled}},
{% endif %}
}; };
</script> </script>
<script src="{% static 'graphene_django/graphiql.js' %}"></script> <script src="{% static 'graphene_django/graphiql.js' %}"></script>