diff --git a/packages/hoppscotch-common/src/components/collections/graphql/index.vue b/packages/hoppscotch-common/src/components/collections/graphql/index.vue index 5715dc7f..406cade5 100644 --- a/packages/hoppscotch-common/src/components/collections/graphql/index.vue +++ b/packages/hoppscotch-common/src/components/collections/graphql/index.vue @@ -182,11 +182,7 @@ import { platform } from "~/platform" import { useService } from "dioc/vue" import { GQLTabService } from "~/services/tab/graphql" import { computed } from "vue" -import { - HoppCollection, - HoppGQLRequest, - makeGQLRequest, -} from "@hoppscotch/data" +import { HoppCollection, HoppGQLRequest } from "@hoppscotch/data" import { Picked } from "~/helpers/types/HoppPicked" import { HoppInheritedProperty } from "~/helpers/types/HoppInheritedProperties" import { updateInheritedPropertiesForAffectedRequests } from "~/helpers/collection/collection" @@ -539,23 +535,13 @@ const selectRequest = ({ tabs.setActiveTab(possibleTab.value.id) return } - tabs.createNewTab({ saveContext: { originLocation: "user-collection", folderPath: folderPath, requestIndex: requestIndex, }, - request: cloneDeep( - makeGQLRequest({ - name: request.name, - url: request.url, - query: request.query, - headers: request.headers, - variables: request.variables, - auth: request.auth, - }) - ), + request: cloneDeep(request), isDirty: false, inheritedProperties: { auth, diff --git a/packages/hoppscotch-common/src/components/http/test/Runner.vue b/packages/hoppscotch-common/src/components/http/test/Runner.vue index 0960e08c..6b6612af 100644 --- a/packages/hoppscotch-common/src/components/http/test/Runner.vue +++ b/packages/hoppscotch-common/src/components/http/test/Runner.vue @@ -126,7 +126,7 @@ import { useVModel } from "@vueuse/core" import { useService } from "dioc/vue" import { pipe } from "fp-ts/lib/function" import * as TE from "fp-ts/TaskEither" -import { computed, nextTick, onMounted, ref, watch } from "vue" +import { computed, nextTick, onMounted, ref } from "vue" import { useReadonlyStream } from "~/composables/stream" import { useColorMode } from "~/composables/theming" import { useToast } from "~/composables/toast"