Skip to content

Commit

Permalink
Fix check in process_view for default graphiql value
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed May 10, 2022
1 parent 14882b2 commit 7237622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphiql_strawberry_debug_toolbar/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def process_view(self, request, view_func, *args):
if (
hasattr(view_func, "view_class")
and issubclass(view_func.view_class, GraphQLView)
and view_func.view_initkwargs.get("graphiql")
and view_func.view_initkwargs.get("graphiql", True)
):
request._graphiql = True

Expand Down

0 comments on commit 7237622

Please sign in to comment.