Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: focus existing request tab instead of duplicating (#5452)

Nivedina5e9f830664f
diff --git a/packages/hoppscotch-common/src/components/collections/index.vue b/packages/hoppscotch-common/src/components/collections/index.vue
index 4dab62074..8178a6f44 100644
--- a/packages/hoppscotch-common/src/components/collections/index.vue
+++ b/packages/hoppscotch-common/src/components/collections/index.vue
@@ -2085,7 +2085,9 @@ const selectRequest = (selectedRequest: {
originLocation: "user-collection",
requestIndex: parseInt(requestIndex),
folderPath: folderPath!,
+ requestRefID: request._ref_id ?? request.id,
})
+
if (possibleTab) {
tabs.setActiveTab(possibleTab.value.id)
} else {