Added temporary hack to fix GQL trailing space errors
This commit is contained in:
parent
eca1baf53e
commit
9113a826ce
1 changed files with 4 additions and 2 deletions
|
|
@ -612,7 +612,8 @@ export default {
|
|||
|
||||
const res = await sendNetworkRequest(reqOptions, this.$store)
|
||||
|
||||
const responseText = new TextDecoder("utf-8").decode(res.data)
|
||||
// HACK: Temporary trailing null character issue from the extension fix
|
||||
const responseText = new TextDecoder("utf-8").decode(res.data).replace(/\0+$/, "")
|
||||
|
||||
this.response = JSON.stringify(JSON.parse(responseText), null, 2)
|
||||
|
||||
|
|
@ -713,7 +714,8 @@ export default {
|
|||
|
||||
const data = await sendNetworkRequest(reqOptions, this.$store)
|
||||
|
||||
const response = new TextDecoder("utf-8").decode(data.data)
|
||||
// HACK : Temporary trailing null character issue from the extension fix
|
||||
const response = new TextDecoder("utf-8").decode(data.data).replace(/\0+$/, "")
|
||||
const introspectResponse = JSON.parse(response)
|
||||
|
||||
const schema = gql.buildClientSchema(introspectResponse.data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue