From 58a9514b67cf4eaae43dfe2f92eed35ef4d98567 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:39:32 +0530 Subject: [PATCH] fix: gql history schema error (#3662) --- .../src/components/graphql/RequestOptions.vue | 5 ++++- packages/hoppscotch-common/src/helpers/graphql/default.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue b/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue index 2d04fcc8c..62cd4fbbd 100644 --- a/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue +++ b/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue @@ -140,7 +140,10 @@ const runQuery = async ( const runVariables = clone(request.value.variables) const runAuth = request.value.auth.authType === "inherit" && request.value.auth.authActive - ? clone(tabs.currentActiveTab.value.document.inheritedProperties?.auth) + ? clone( + tabs.currentActiveTab.value.document.inheritedProperties?.auth + .inheritedAuth + ) : clone(request.value.auth) const inheritedHeaders = diff --git a/packages/hoppscotch-common/src/helpers/graphql/default.ts b/packages/hoppscotch-common/src/helpers/graphql/default.ts index 88d2321c5..dd08b5f92 100644 --- a/packages/hoppscotch-common/src/helpers/graphql/default.ts +++ b/packages/hoppscotch-common/src/helpers/graphql/default.ts @@ -27,7 +27,7 @@ export const getDefaultGQLRequest = (): HoppGQLRequest => ({ }`, query: DEFAULT_QUERY, auth: { - authType: "inherit", + authType: "none", authActive: true, }, })