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: duplicate tab reference bug (#3356)
Nivedin53ec605963b5
diff --git a/packages/hoppscotch-common/src/pages/index.vue b/packages/hoppscotch-common/src/pages/index.vueindex a0d5378e8..21d97dd85 100644--- a/packages/hoppscotch-common/src/pages/index.vue+++ b/packages/hoppscotch-common/src/pages/index.vue@@ -141,6 +141,7 @@ import { InspectionService } from "~/services/inspection"import { HeaderInspectorService } from "~/services/inspection/inspectors/header.inspector"import { EnvironmentInspectorService } from "~/services/inspection/inspectors/environment.inspector"import { ResponseInspectorService } from "~/services/inspection/inspectors/response.inspector"+import { cloneDeep } from "lodash-es"const savingRequest = ref(false)const confirmingCloseForTabID = ref<string | null>(null)@@ -243,7 +244,7 @@ const duplicateTab = (tabID: string) => {const tab = getTabRef(tabID)if (tab.value) {const newTab = createNewTab({- request: tab.value.document.request,+ request: cloneDeep(tab.value.document.request),isDirty: true,})currentTabID.value = newTab.id