Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: add tab id while opening tab (#4587)
Nivedina332fd1f697f
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/index.vue b/packages/hoppscotch-common/src/components/collections/graphql/index.vueindex 5715dc7f6..406cade55 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.vueindex 0960e08c5..6b6612afe 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"