From cbae718d25635d5ffd5bc7fabb7b4061a277d02e Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Sun, 19 Jul 2020 17:37:53 -0400 Subject: [PATCH] Fixed Unexpected Token errors for GraphQL queries --- pages/graphql.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 33b9f8511..b7d6d8711 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -528,7 +528,7 @@ export default { const res = await sendNetworkRequest(reqOptions, this.$store) - const responseText = new TextDecoder("utf-8").decode(new Uint8Array(res.data)) + const responseText = new TextDecoder("utf-8").decode(res.data) this.response = JSON.stringify(JSON.parse(responseText), null, 2) @@ -629,7 +629,7 @@ export default { const data = await sendNetworkRequest(reqOptions, this.$store) - const response = new TextDecoder("utf-8").decode(new Uint8Array(data.data)) + const response = new TextDecoder("utf-8").decode(data.data) const introspectResponse = JSON.parse(response) const schema = gql.buildClientSchema(introspectResponse.data)