mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Comment
This commit is contained in:
parent
4b64c81222
commit
2787f93efa
@ -247,8 +247,8 @@ export async function getRenderedRequestAndContext(
|
||||
purpose
|
||||
);
|
||||
|
||||
// HACK: Remove comments from GraphQL.query because comments (#})
|
||||
// can cause rendering to fail (https://github.com/getinsomnia/insomnia/issues/895)
|
||||
// HACK: Switch '#}' to '# }' to prevent Nunjucks from barfing
|
||||
// https://github.com/getinsomnia/insomnia/issues/895
|
||||
try {
|
||||
if (request.body.text && request.body.mimeType === CONTENT_TYPE_GRAPHQL) {
|
||||
const o = JSON.parse(request.body.text);
|
||||
|
Loading…
Reference in New Issue
Block a user