diff --git a/subjects/graphql/index.html b/subjects/graphql/index.html
index 4af70c6b..60e86fe6 100644
--- a/subjects/graphql/index.html
+++ b/subjects/graphql/index.html
@@ -26,12 +26,11 @@
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(graphQLParams),
})
- .then(response => response.json())
- .catch(() => response.text());
+ .then(response => response.json().catch(() => response.text()))
ReactDOM.render(
React.createElement(GraphiQL, { fetcher: graphQLFetcher }),
document.getElementById('graphiql'),
- );
+ )