Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix the example query displayed in Playground

Patryk Zawadzki6c73a7caee07
diff --git a/templates/graphql/playground.html b/templates/graphql/playground.html
index 6e750cacd6..25c530bba3 100644
--- a/templates/graphql/playground.html
+++ b/templates/graphql/playground.html
@@ -10,7 +10,7 @@
<meta http-equiv="content-security-policy" content="default-src 'none'; connect-src {{ api_url }}; script-src 'sha256-24AcA5M3t+KN6ZRQvfqBG51OyLciyk0UJwVBAX94SZI=' 'sha256-jpQ7CLb9c8nrwEY+pDfFNOgGpKzrNTRsWVv4yB8QVnQ='; style-src https://cdn.jsdelivr.net/npm/[email protected]/build/static/css/index.css 'sha256-jkwxzyKPdPQHgIYu9x7it0jbIOtzMGr9iFmRtSaiwX4='; img-src data: https://cdn.jsdelivr.net/npm/[email protected]/build/static/media/logo.8c98d067.png https://cdn.jsdelivr.net/npm/[email protected]/build/favicon.png">
</head>
<body>
- <div id="root" data-endpoint="{{ api_url }}" {% if query %}data-query="{{ query|safe }}"{% endif %}>
+ <div id="root" data-endpoint="{{ api_url }}" {% if query %}data-query="{{ query }}"{% endif %}>
{# sha256-jkwxzyKPdPQHgIYu9x7it0jbIOtzMGr9iFmRtSaiwX4= #}
<style>
body {