From a5e9f830664f9a5504f4036fe814adde6b043ddd Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:21:00 +0530 Subject: [PATCH] fix: focus existing request tab instead of duplicating (#5452) Addresses an issue where multiple tabs would open even when a request tab was already active. It now correctly switches to the active tab instead. --- packages/hoppscotch-common/src/components/collections/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/hoppscotch-common/src/components/collections/index.vue b/packages/hoppscotch-common/src/components/collections/index.vue index 4dab6207..8178a6f4 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 {